This piece will round out server side validation of a user registration. I need to reselect items in a multi select from a form post onload. I have very little experience with javascript arrays and really need some direction.
Here's the select tag and options:
Code:
<select name="days" id="days" size="4" multiple>
<option>Mon</option>
<option>Tue</option>
<option>Wed</option>
<option>Thu</option>
<option>Fri</option>
<option>Sat</option>
<option>Sun</option>
</select>
Once a user submits their reg form, the server validates the results and redirects back to the reg page if an error has been detected (pretty standard). I'm trying to repopulate their selections to save them time.
I'm able to do this with single selects but the multi is another story. I've got their selections stored in an asp var - strDays.
Any help is greatly appreciated, thanks in advance.