Disable form using jquery

Ankaprasad
Posted by Ankaprasad under jQuery category on | Points: 40 | Views : 330
We can disable the form controls by calling the below function on document ready or button click

function disablePage() {
$("button,input,select,textarea").prop('disabled', true);
$("button,input[type=button]").addClass("ApplyColor"); // Optional
}

Comments or Responses

Login to post response