Title: about textbox html property maxlength not avalible in jeasyui Post by: aljcn on March 02, 2015, 05:44:09 PM see this code:
<input id="tbA" type="text" name="tbA" maxlength="10" class="easyui-textbox" /> <input id="tbB" type="text" name="tbB" maxlength="10" /> preview in explore,first input's maxlength property not take effect. but second has. I know can use next code to achieve this function: <input id="tbA" type="text" name="tbA" class="easyui-textbox" data-options="validType:'length[0,10]'" /> <input id="tbB" type="text" name="tbB" maxlength="10" /> But it is not a good user experience, Able to retain this property? Title: Re: about textbox html property maxlength not avalible in jeasyui Post by: jarry on March 02, 2015, 07:14:51 PM Please call 'textbox' method to get the inputing box, you will be able to add any attributes on it.
Code: $('#tbB').textbox('textbox').attr('maxlength', '10'); Title: Re: about textbox html property maxlength not avalible in jeasyui Post by: aljcn on March 02, 2015, 11:07:08 PM thanks.
|