how to show selected value in dropdown in jquery code example
Example 1: how to fetch the selected value of dropdown jquery
BY LOVE
$('#ddlName option:selected').val();
Example 2: set dropdown in jquery
$('select[name^="salesrep"] option[value="Bruce Jones"]').attr("selected","selected");
Example 3: set dropdown in jquery
$('select[name^="salesrep"] option:selected').attr("selected",null);
Example 4: jquery: get selected option of the drop down list
$('#ddlID').val();
$('#ddlID').text();