Go back
<html> <head> <title>Using jQuery Format Plugin for entering Decimal Number</title> <script type="text/javascript" src="/js/jquery.js"></script> <script type="text/javascript" src="/js/jquery.format.1.03.js"></script> </head> <body> This example is extracted from <a href="http://examplet.buss.hk/jquery/format.php" target="_blank"> http://examplet.buss.hk/jquery/format.php</a> <br/> Please enter a decimal number (4 decimal places) <input type="text" class="numeric" size="30"/> <script type="text/javascript"> $(".numeric").format({precision: 4,autofix:true}); </script> </body> </html>
Your Result:
Edit the code above and click to see the result.