class method Form.enable

View source on GitHub →

Form.enable(form) → Element

Enables a fully- or partially-disabled form.

Enabling the form is done by iterating over form elements and calling Form.Element.enable on them.


This will enable all form controls regardless of how they were disabled (by scripting or by HTML attributes).

This method can be called either as an instance method or as a generic method. If calling as a generic, pass the instance in as the first argument.