EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: aboboo on January 28, 2015, 08:27:20 PM



Title: Why easyui-searchbox can't use editable = false ?
Post by: aboboo on January 28, 2015, 08:27:20 PM
how to make the searchbox can input, the editable seems doesn't work!


Title: Re: Why easyui-searchbox can't use editable = false ?
Post by: stworthy on January 29, 2015, 12:51:05 AM
By default the 'editable' property is set to true. To prevent from entering characters on searchbox, please set 'editable' to false.
Code:
<input class="easyui-searchbox" style="width:300px" data-options="
prompt:'Please Input Value',
editable: false,
">


Title: Re: Why easyui-searchbox can't use editable = false ?
Post by: aboboo on January 29, 2015, 07:06:06 PM
thank you! but it doesn't work!


Title: Re: Why easyui-searchbox can't use editable = false ?
Post by: stworthy on January 29, 2015, 07:18:11 PM
Please refer to this example http://jsfiddle.net/g5LgbLxm/.