I have about 20 small dropdowns in row. Each of those have two javascript functions.
onchange
: call an ajax function for saving the valueonkeyup
: jump to the next dropdown and open itNow if the user press tab, the next dropdown will be omitted. This is why I want to prevent the regular tab-key function. How to do this?
you can call such a method :
function keyHandler(e) {
var TABKEY = 9;
if(e.keyCode == TABKEY) {
if(e.preventDefault) {
e.preventDefault();
}
return false;
}
}