How can I get the selected value of a dropdown box using jQuery? I tried using
var value = $(\'#dropDownId\').val();
and
This will alert the selected value. JQuery Code...
$(document).ready(function () { $("#myDropDown").change(function (event) { alert("You have Selected :: "+$(this).val()); }); });
HTML Code...
Milk Egg Bread Fruits