I have a legacy code that uses asp.net updatepanel to load some pagination items. basically it will have some text boxes and some text. i need to check whether any checkbox is selected on click of a button. The jquery code that i have works for the initial load but when the ajax load happens, the items loaded are no longer in the initial DOM so will not be considered for any jquery activities. we can use live or deligate for events but if i have to uses the control as a selector that won't help.
The code to check whether the checkbox is selected is strait forward but my concern is how do i rebind it after ajax call?
if ($('input:checked').length > 0) {
alert('checked');
}
else {
alert("not selected");
}
Any ideas??