EasyUI Forum
May 15, 2024, 01:11:51 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Why easyui-searchbox can't use editable = false ?  (Read 6428 times)
aboboo
Newbie
*
Posts: 15


View Profile
« on: January 28, 2015, 08:27:20 PM »

how to make the searchbox can input, the editable seems doesn't work!
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 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,
">
Logged
aboboo
Newbie
*
Posts: 15


View Profile
« Reply #2 on: January 29, 2015, 07:06:06 PM »

thank you! but it doesn't work!
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #3 on: January 29, 2015, 07:18:11 PM »

Please refer to this example http://jsfiddle.net/g5LgbLxm/.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!