Check Query String

Javascript 1 มิ.ย. 2012

$(document).ready(function() {
if(document.location.search == "?msg=thanks") {
$("#alert").html("Thanks for your submission!");
} else if(document.location.search == "?msg=error") {
$("#alert").html("There was an error with your submission!");
} else {

}
});

แท็ก

Onyx

Just a middle-aged programmer, Can do many things but not the most.