I have an update panel and inside the panel text boxes and buttons are available. Now I am using the jQuery Validation plugin, but the validation plugin is not working when it is used in the update panel.
For example:
function GetAddressTargetList() {
var objArray = new Array();
var objAddressElement = new Object();
objAddressElement = new Object();
objAddressElement.Id = "ddlAccType";
objAddressElement.Rules = "required";
objAddressElement.TargetControlType = "select";
objArray[objArray.length] = objAddressElement;
objAddressElement = new Object();
}
and in the page level (.aspx)
$(document).ready(function () {
GetAddressTargetList();
});
function pageLoad(sender, args) {
// To load the tooltip in update panel
if (args.get_isPartialLoad()) {
GetAddressTargetList();
}
}
How can I get the validation when I am using the update panel working?