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();
- }
- });
- });