ill try to reload my page again after alert. the problem is when i click ok my prompt show again then i need to verify the number again and back to alert again.
- $(document).ready(function () {
- var contact = prompt("Please input contact number if you are already customer");
- $.ajax({
- url: '@Url.Action("getclientbycontactnumber", "client")',
- data: { contactNumber: contact },
- success: function () {
- alert("Success");
- window.location.reload();
- }
- });
- });

Ramesh PalanivelRank #372 · 6.8K reputationPosted Sep 25, 2019, 2:49 AM EDT
Bidyasagar MishraRank #766 · 3K reputationPosted Sep 25, 2019, 5:55 AM EDT
Denmark PusoRank #7,130 · 248 reputationPosted Sep 25, 2019, 5:16 PM EDT
Ramesh PalanivelRank #372 · 6.8K reputationPosted Sep 25, 2019, 9:46 PM EDT