toggle to enable,disable all controls of page

$(document).ready(function()

{ $("#btnEnableDisable").toggle(

           function() {

            $("*").attr("disabled", "disabled");

          $(this).attr("disabled", ""); },  

           function() { $("*").attr("disabled", "");

});

});

});