It is jQuery, not jscript. Why are you using jQuery with its large overhead for such a simple task?
The action of the form specifies the server-side script to which your form is submitted.
In any case, the code is next to useless.
Originally Posted by Jay77
if(name == "")
Form validation of the pattern if (document.formname.formfield.value == "") - that is blank
- is barely worthy of the name, and virtually useless, as even a single space, an X or a ? will return false, that is pass the validation. A proper name may only contain letters, hyphen, space and apostrophe.Numeric values, such as zip codes, phone numbers and dates, should be validated as such. Ditto email addresses. This topic has been covered many times before in this forum.
All advice is supplied packaged by intellectual weight, and not by volume. Contents may settle slightly in transit.