I need to get the value of the chosen dynamically created select dropdown box using JQuery.
Example:
If I select the value Red
from the first drop down, the Jquery should alert the value "red".
If I select another value from the second drop down, the next Jquery should alert that selected value. These dropdowns are dynamically created dropdowns.
<select class="" id="part_no0" name="part_no[]">
<option value="red">Red</option>
<option value="green">Green</option>
<option value="blue">Blue</option>
</select>
<select class="" id="part_no1" name="part_no[]">
<option value="car">Car</option>
<option value="bike">Bike</option>
<option value="bus">Bus</option>
</select>
<select class="" id="part_no2" name="part_no[]">
<option value="apple">Apple</option>
<option value="huawei">Huawei</option>
<option value="sony">Sony</option>
</select>
Any suggestions in this regard will be much appreciated.