Tuesday, 24 June 2014

Check UnCheck Chekbox inside nested repeater

<script type="text/javascript">
   function toggleSelectionUsingHeaderCheckBox() {
   $("input[name$='chkMain']").each(function () {
   // get all child checkbox
   var subCheckbox = $(this).parent().parent().next().find("td").find("table").find("tr").find("td").find("input[name$='chkSub']");
      subCheckbox.prop('checked', $(this).prop('checked'));
      });
  }
 </script>

No comments:

Post a Comment