focus next autocomplete input by ENTER key
Good day to everyone,
I'm trying to set up focus on next autocomplete input field by pressing ENTER or NUM ENTER keys on previous one. Had found this code in ''jquery-ui.js''
-
case keyCode.ENTER:
if ( this.menu.active ) {
suppressKeyPress = true;
event.preventDefault();
this.menu.select( event );
}
break;
-
case keyCode.NUMPAD_ENTER:
// when menu is open and has focus
if ( this.menu.active ) {
// #6055 - Opera still allows the keypress to occur
// which causes forms to submit
suppressKeyPress = true;
event.preventDefault();
this.menu.select( event );
}
break;
Already tried to change it with same code for TAB key... didn't worked.
Same for simple actions like '' $(#nextInp).focus(); "".
Maybe some one know the solution?
P.S. Crappy english, I know... sry guys :)