HTML form - onChange problem

Discussion in 'HTML & Website Design' started by missyp, Oct 27, 2006.

  1. #1
    I have the following code in a form (there is some ASP stuff in there, but that shouldn't make a difference):


    <% 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!
     
    missyp, Oct 27, 2006 IP