To get the selected value using jQuery in ASP.NET dropdown list;
$("select[id$='DropDownList1']").val();
To get the selected text :
$("select[id$='DropDownList1'] :selected").text();
making the web extensible
To get the selected value using jQuery in ASP.NET dropdown list;
$("select[id$='DropDownList1']").val();
To get the selected text :
$("select[id$='DropDownList1'] :selected").text();
No comments:
Post a Comment