EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: karogel on August 14, 2016, 06:22:42 PM



Title: how to control numberbox what to focus next after pressing enter key
Post by: karogel 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();
   }

});
   


Title: Re: how to control numberbox what to focus next after pressing enter key
Post by: stworthy on August 14, 2016, 07:38:27 PM
Please try this code:
Code:
$('#app_charge2').numberbox('textbox').focus();