I have a jsp having 3 combos
<select class="radius3" name="location" id="location" onchange="reset();">
<option value="">Select Location</option>
<option value="1">A</option>
<option value="2">B</option>
<option value="23">C</option></select>
<select class="radius3" name="wing" id="wing">
<option value="">Select Wing</option>
<option value="1">X</option>
<option value="2">Y</option>
</select>
<select class="radius3" name="post" id="post" >
<option value="">Select Designation</option>
</select>
and created a javaScript function named reset
which is assigned to location combo on event onchange , so that on the change of location user have to explicitly select other values
function reset(){
$("#wing").val("");
$("#post").val("");
}
but problem is that when ever i try to select any value from location combo it does not changes the value.
**P.S though its working fine in fiddle, please do not refer any fiddle and say its working fine,
it is actually creating problem
**
after selecting option its still showing the select location
Update
I am using jquery-1.10.2