javascript - Tab key is not working in firefox at key press event -
key for this code The tab key in the press event is not working in Firefox
$ ('Number'). Keypress (function) {if (! / \ D / .test (string.lightcode code (event.)) {$ ('# Error'). Attr ('class', 'errorMessage' '$ (' # Error '). Text ("Enter numbers only") Return return;} and {$ (' # error '). At (' square ',' display: none ';); $ (' #error ') The text (""); return true;}});
$ ('Number.') Keydown (function) {var keycode = event.which; if (! / [\ D \ t \ b] /. Test (string.framecorder.which)} event .shiftKey) {$ ('# error'). Attr ('' class ',' error message ''; $ ('# Error'). Text ("Enter only numbers"); Return back;} and {$ ('# error'). Attr ('class',' display: none; ''); $ ('# Error'). Text (""); True Truth;}});
Comments
Post a Comment