writeAttribute() example

The documentation on http://prototypejs.org/api/element/writeAttribute is a wee bit scarce. So here’s a quick one on usage.

To add an attribute:

To remove an attribute:

To enable all disabled form elements (in a form with the id ‘container’):