EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: aboboo on January 29, 2015, 08:24:50 PM



Title: How to add focus event on searchbox?
Post by: aboboo on January 29, 2015, 08:24:50 PM
How to add event on searchbox, such as click, focus, blur...


Title: Re: How to add focus event on searchbox?
Post by: jarry on January 30, 2015, 06:15:55 AM
The simple way to achieve this is to get the input box and then bind any events on it.
Code:
$('#ss').searchbox('textbox').bind('click',function(e){
  //...
});


Title: Re: How to add focus event on searchbox?
Post by: aboboo on February 01, 2015, 06:19:33 PM
thank you !