alert message after entered debit card number

Total Post:183


 1782  View(s)
Rate this:

Hi Mindstickians!

I want to display alert message of entered text from textbox, after entered debit card number by users for just confirmation.

Debit card number format as following

Thanks in advance!

  1. Re: alert message after entered debit card number

    Hi Ankita!

    You could try following line of code

    <script src="../../Scripts/jquery-1.7.1.min.js" type="text/javascript"></script>
    <script src="../../Scripts/jquery.maskedinput.js" type="text/javascript"></script>
    <script type="text/javascript">
        jQuery(function ($) {
             $("#txtAlert").mask("9999-9999-9999-9999", { completed: function () { alert("You typed the following: " + this.val()); } });
    <input id="txtAlert" type="text" />

    "jquery-1.7.1.min.js" provided by MVC application
    "jquery.maskedinput.js" you can download from following link

      Modified On Mar-29-2018 11:10:53 PM


Please check, If you want to make this post sponsored

You are not a Sponsored Member. Click Here to Subscribe the Membership.