---
title: "alert message after entered debit card number"  
description: "alert message after entered debit card number"  
author: "Anonymous User"  
published: 2013-03-09  
updated: 2013-03-09  
canonical: https://www.mindstick.com/forum/635/alert-message-after-entered-debit-card-number  
category: "javascript"  
tags: ["javascript"]  
reading_time: 1 minute  

---

# alert message after entered debit card number

Hi Mindstickians!

I want to [display alert](https://www.mindstick.com/forum/175/display-alert-on-window-load-in-javascript) [message](https://www.mindstick.com/forum/12802/show-confirmation-message-yes-or-no-in-asp-dot-net) of entered [text](https://www.mindstick.com/blog/301635/did-people-reinvent-texting-to-express-the-full-range-of-emotions) from [textbox](https://www.mindstick.com/forum/12714/dynamic-textbox-in-gridview), after entered [debit card](https://answers.mindstick.com/qa/38162/which-public-sector-company-collaborated-with-samsung-india-and-announced-the-availability-of-samsung-pay-for-higher-variants-of-it-s-debit-card-giving-a-major-boost-to-government-s-digital-india-initiative) number by [users](https://www.mindstick.com/news/2244/issue-preventing-users-from-accessing-facebook-s-social-networking-platforms-has-been-resolved) for just confirmation.

Debit card number [format](https://www.mindstick.com/forum/162083/how-to-convert-ost-files-into-pst-format) as following\
9585-5845-6525-4751

Thanks in [advance](https://www.mindstick.com/blog/33258/jee-mains-and-jee-advance-exams)!

## Replies

### Reply by AVADHESH PATEL

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()); } });
    });
</script><input id="txtAlert" type="text" />
```

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

[https://raw.github.com/digitalBush/jquery.maskedinput/1.3.1/dist/jquery.maskedinput.min.js](https://raw.github.com/digitalBush/jquery.maskedinput/1.3.1/dist/jquery.maskedinput.min.js)


---

Original Source: https://www.mindstick.com/forum/635/alert-message-after-entered-debit-card-number

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
