EasyUI Forum
May 16, 2024, 01:36:32 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: How to add focus event on searchbox?  (Read 7081 times)
aboboo
Newbie
*
Posts: 15


View Profile
« on: January 29, 2015, 08:24:50 PM »

How to add event on searchbox, such as click, focus, blur...
« Last Edit: January 29, 2015, 08:28:18 PM by aboboo » Logged
jarry
Administrator
Hero Member
*****
Posts: 2264


View Profile Email
« Reply #1 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){
  //...
});
Logged
aboboo
Newbie
*
Posts: 15


View Profile
« Reply #2 on: February 01, 2015, 06:19:33 PM »

thank you !
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!