Saturday, September 11, 2010

onchange event in DropDownList through Jquery


$(document).ready(function() {
$('#<%=DropDownList1.ClientID %>').change(function() {
if (($("#<%=DropDownList1.ClientID %> option:selected").val() == "0"))
{
... // do your stuff
}
else
{
// do your stuff
}

});});

1 comment :

AJAX, asp, Asp.net, asp.net and sql server security, Asp.net IntemIndex, C#, Css, DataBinder.Eval, DataKeyNames, Datalist, Datapager, DataSet, DataTable, DropDownList, FindControl, gridview, JavaScript, jquery, Listview, Paging, Regex, RegularExpression, Repeater, Server side validation, Sql Server, timer, timercallback, Validation, XML, xmlnode, XPath