How can I get the selected value of a dropdown box using jQuery? I tried using the following lines of code:-
var value = $('#dropDownId').val();
and
var value = $('select#dropDownId option:selected').val();
But however, haven't had any results as both return an empty string.