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

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -