I have a form with 3 text fields (one of which is a zip code) and 5
combo boxes. The combo boxes are all set with the first value as
'selected' when the page is first displayed. The 3 text fields are
required and are by default empty. I need to validate that the text
fields have an entry and that the zip code is numeric and the correct
length. If the form fails validation - one of the text fields is empty,
for example - I need to alert the user and leave the combo boxes as
they were when the submission occurred. In other words, I don't want
the user to have to reselect the combo box values after validation
fails. I'm new at this - usually do it server-side, but the boss wants
to use JavaScript. Can someone please point me to an example. I've
Googled to no avail.
Thanks!