How can I get the selected value of a dropdown box using jQuery? I tried using
var value = $(\'#dropDownId\').val();
and
You can use any of these:
$(document).on('change', 'select#dropDownId', function(){ var value = $('select#dropDownId option:selected').text(); //OR var value = $(this).val(); });