EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: kingor2001 on June 19, 2019, 11:14:54 PM



Title: textbox don't accept maxlength attr?
Post by: kingor2001 on June 19, 2019, 11:14:54 PM
such as
<input class="easyui-textbox"data-options="label:'foo'" maxlength="10">
this maxlength="10" don't work.


Title: Re: textbox don't accept maxlength attr?
Post by: jarry on June 20, 2019, 06:32:49 PM
Please apply the 'length' validation rule to the textbox component.
Code:
<input class="easyui-textbox" data-options="validType:'length[0,10]'" style="width:100%;">