disable
disable(formElement) -> HTMLFormElement
Disables the form as whole. Form controls will be visible but uneditable.
Disabling the form is done by iterating over form elements and disabling them.
Can I try it?
Sure, here's an example:
Code attached to the onclick handler for the button is:
var form = $('disable-example');
// cycle between calling form.disable() and form.enable()
form[form.disabled ? 'enable' : 'disable']();
form.disabled = !form.disabled;
Note
Keep in mind that disabled elements are skipped by serialize methods! You cannot serialize a disabled form.