How can I get the selected value of a dropdown box using jQuery? I tried using
var value = $(\'#dropDownId\').val();
and
You can do this by using following code.
$('#dropDownId').val();
If you want to get the selected value from the select list`s options. This will do the trick.
$('#dropDownId option:selected').text();