Tuesday, 12 July 2011

Dropdownlist selected value or text from jquery

fetches selected dropdownlist text
var ddlName = $("#ddlName option:selected").text();

fetches selected dropdownlist value
var ddlName = $("#ddlName option:selected").value();

No comments:

Post a Comment