Javascript examples for jQuery:Form Input
Jquery.inputmask for input field
<html> <head> <script type="text/javascript" src="https://code.jquery.com/jquery-1.11.0.js"></script> <script type="text/javascript" src="https://rawgit.com/RobinHerbots/jquery.inputmask/3.x/dist/jquery.inputmask.bundle.js"></script> <script type="text/javascript"> $(window).load(function(){//from www. j a v a 2 s. c om $("#currIN").inputmask("9999"); }); </script> </head> <body> <input value="10" id="currIN"> </body> </html>