How to user mask for Phone/Zip Code or Other in Jquery?

Step 1:

<input name="phone" id="phone" type="text" required>

Step 2:

Add CDN

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.maskedinput/1.4.1/jquery.maskedinput.js"></script>

 

Step 3:

    <script>
        jQuery(function ($) {
            $("#phone").mask("9999-9999999");
        });
    </script>


Copyright Future Minutes © 2015- 2024 All Rights Reserved.   Terms of Service  |   Privacy Policy |  Contact US|  Pages|  Whats new?
Update on: Dec 20 2023 05:10 PM