I have the following code in a form: <% i=0 rs_alt_tags.movefirst %> <select name="categories" class="formC" onChange="location=(this.options[this.selectedIndex].value);"> <option value="%">Please select job category</option> while not rs_alt_tags.EOF%> <option value="index_andrew.asp?job_type=<%=i+1%>" <%=rs_alt_tags("jobcategory_name")%></option> <% rs_alt_tags.movenext i=i+1 wend %> </select> It works perfectly fine, except when you select one of the dropdowns/options, it doesn't STAY on that particular selection. Anybody know how to do that? Thanks!
Perhaps it's sensing a change and going back to the default position indicated in the <select> statement? If that's the case maybe it can be corrected by including a selected=selected property in the <option> statement that the user clicked.
hi, don't quite follow. If it's after the postback that you want the option to stay selected, then in your loop you'll have to check the value of each entry, and when you find the one matching location put "SELECTED" on the end of the value tag. regards