please tell me
jsp code to get index value of option list(drop down list)
i have created drop down list as follows
<select id="instance2" >
<option value="name">Item0</option>
<option value="name">Item1</option>
<option value="name">Item2</option>
</select>
now i want to get index value of selected item in variable then how can i do this?? .