Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var x=new XMLHttpRequest();
- x.onreadystatechange=function()
- {
- if (x.readyState == 4 && x.status == 200)
- {
- var msg=x.responseText.trim();
- if(msg=="Thank you for booking and Have a nice Journey!!!")
- {
- alert("Successfully submitted");
- location.reload();
- }
- else
- {
- $.GWSnackbar({id:"snackbar",type:"default",message:"Sorry...Try again"});
- }
- }
- }
Add Comment
Please, Sign In to add comment