retrive values of two dropdown boxes without submitting the form
- by Kaustav Dey
I have two dropdown boxes in a single form. How can I alert the values of both the dropdown boxes with onchange function on the second dropdown box without submitting the form.
<select name="abc1" id="abc1">
<option value="a">A</option>
<option value="B">B</option>
<option value="c">C</option>
</select>
<select name="abc2" id="abc2" onchange="getvalue()">
<option value="a">d</option>
<option value="e">E</option>
<option value="f">F</option>
</select>