Mission: Forward the user based on the value of a field $(document).ready(function(){ $("#noName,#hasName").hide() firstName = $("#first").attr("value"); if(typeof firstName != "undefined"){ $("span.firstNameSpan").empty().text(firstName); $("#hasName").show(); } else { $("#noName").show(); } });

Hello Valued Customer

You have no name!!
You do have a name!!