EasyUI Forum
May 10, 2024, 09:02:08 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 control numberbox what to focus next after pressing enter key  (Read 4213 times)
karogel
Newbie
*
Posts: 28


View Profile
« on: August 14, 2016, 06:22:42 PM »

Hi im trying to control what numberbox to focus after keypress, like this code:

$('#app_charge1').numberbox('textbox').bind('keypress',function(e){
   if(e.keyCode==13)
   {
      $('#app_charge2').numberbox.focus();
   }

});
   
« Last Edit: August 14, 2016, 06:43:22 PM by karogel » Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: August 14, 2016, 07:38:27 PM »

Please try this code:
Code:
$('#app_charge2').numberbox('textbox').focus();
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!