Jquery.inputmask for input field - Javascript jQuery

Javascript examples for jQuery:Form Input

Description

Jquery.inputmask for input field

Demo Code

ResultView the demo in separate window

<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>

Related Tutorials