Go back
<html> <head> <title>Using jQuery Format Plugin for Entering Phone 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 input a Phone Number (Only Digit and Hyphen are allowed)<br/> <input type="text" class="phone-number" size="30"/> <script type="text/javascript"> $(".phone-number").format({type:"phone-number"}); </script> </body> </html>
Your Result:
Edit the code above and click to see the result.