$(document).ready(function () {
$(".test123").live("change", function () {
var ddlBrand = "";
ddlBrand = $('#<%= ddlBrand.ClientID %>').val();
if (ddlBrand > 0) {
return confirm('The values entered for this brand will reset. Are you sure you want to change the Brand.');
});
}
});
return false;
});
我对上述代码的问题是在取消确认框时我无法保留页面状态。同样对于第一个下拉选择,我不想要确认框。请帮忙。