EasyUI Forum
September 14, 2025, 03:27:39 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 can i call an action on an "textbox" if the user press "Enter"?  (Read 6991 times)
Stefan B.
Full Member
***
Posts: 152


Software Architekt


View Profile Email
« on: October 31, 2014, 08:11:54 AM »

On "Combo" is an key handler defined.
But why not on an "textbox"?

How can i call an action on an "textbox" if the user press "Enter"?
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: October 31, 2014, 09:16:25 AM »

You can call 'textbox' method to get the inputing box and bind any events on it.
Code:
$('#tt').textbox('textbox').bind('keydown', function(e){
//...
});
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!