Wednesday, August 6, 2014

get selected value dropdown jquery

How to get selected value of DropDownList (server control) using JQuery

$("select[id$=ddlContentType]").change(function () {
var selectedval = $('select[id$=ddlContentType] option:selected').text();
alert(selectedval);
});

0 comments:

Post a Comment