Thursday, 22 September 2016

Disable-Enable all controls of page using jQuery

Disable-Enable all controls of page using jQuery

$(document).ready(function() {
   $("#btnEnableDisable").toggle(function() {
      $("*").attr("disabled", "disabled");
          $(this).attr("disabled", "");
       }, function() {
          $("*").attr("disabled", "");
  });
});

No comments:

Post a Comment