TheCandyman
Technical User
I'm getting a validation error in this small function. The problem is the fourth line down on the '&&' which i tried to bold.
What's wrong with that?
Code:
function tabOnEnter (field, evt) {
var keyCode = document.layers ? evt.which : document.all ?
evt.keyCode : evt.keyCode;
if (keyCode != 13 [b]&&[/b] keyCode !=9)
return true;
else {
var el=getNextElement(field);
if (el.type!='hidden')
el.focus();
else
while (el.type=='hidden')
el=getNextElement(el);
el.focus();
return false;
}
}
What's wrong with that?