My dropdownlist has an ID of ID=ddltest
How can I reference the selected item in the drop down using jquery?
My dropdownlist has an ID of ID=ddltest
How can I reference the selected item in the drop down using jquery?
$('select#ddltest option:selected').each(function(){
alert($(this).val());
});
$("#ddltest").val();
will give you the value of the selected item
If you want the actual selected item itself:
$("#ddltest option:selected");