javascript : key validation

Posted by Geetha on Stack Overflow See other posts from Stack Overflow or by Geetha
Published on 2009-09-24T10:24:53Z Indexed on 2010/03/30 8:03 UTC
Read the original article Hit count: 149

Filed under:
|

hi all,

im using javascript to validate keys in textbox. it is not working :(

  function numeric(e) {
        return ((e.keyCode == 8) ||
                (e.keyCode == 9) ||
                (e.keyCode > 47 && e.keyCode < 58) ||
                (e.keyCode > 36 && e.keyCode < 41) ||
                (e.keyCode == 46) ||
                (e.keyCode > 95 && e.keyCode < 106) ||
                e.keyCode == 190 ||
                e.keyCode == 110);
    }

help me...

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about c#