Why Join
Become a member
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
C# Corner Home
Technologies
Monthly Leaders
ASK A QUESTION
Forumguidelines
Denmark Puso
1.8k
232
20.1k
Page reload after click alert.?
Sep 25 2019 6:30 AM
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();
}
});
});
Reply
Answers (
4
)
Destroy cookies value using jquery .
How to prevent dropdown option and maintain the selected opt