Javascript validate number

Javascript validate number

this example allow only number character in you text field. This javascript validate number code can be tested at here .

—- JavaScript validate number code

——- html code

 

One thought on “Javascript validate number

  1. Hi,

    When using WordPress, try to install “SyntaxHighlighter Evolved” plugin. It makes the code reading definitely more friendly.

    “Allow number only in TextField by javascript” can also be achieve quickly and with two/three lines of code by using regular expressions. Just give it a try!

Leave a Reply

Your email address will not be published. Required fields are marked *