How can I get the selected value of a dropdown box using jQuery? I tried using
var value = $(\'#dropDownId\').val();
and
use either of these codes
$('#dropDownId :selected').text();
OR
$('#dropDownId').text();