Check Query String

[javascript]
<script type="text/javascript">
$(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 {

}
});
</script>
[/javascript]

Leave a Reply