EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: sky_proj on June 08, 2015, 05:22:18 AM



Title: How to use maxlength in combobox? [Solved]
Post by: sky_proj on June 08, 2015, 05:22:18 AM
Can we add maxlength on combobox?
<input Id=`test´ class=`easyui-combobox´ maxlength=`5´>


Title: Re: How to use maxlength in combobox?
Post by: stworthy on June 08, 2015, 08:43:00 AM
You can add a 'length' validation to the combobox component.
Code:
<input Id='test' class='easyui-combobox' data-options="validType:'length[0,5]'">


Title: Re: How to use maxlength in combobox?
Post by: sky_proj on June 08, 2015, 09:55:08 AM
You can add a 'length' validation to the combobox component.
Code:
<input Id='test' class='easyui-combobox' data-options="validType:'length[0,5]'">

That's good idea - thanks