Table of Contents:
- Job One: Correctly Referencing Elements
- Getting the Form
- Array example
- Getting the Form
- Getting to the Elements
- Checkboxes
- Conclusion
Sooner or later, you’re going to have to script that form! In fact, it probably will be sooner than later.
Any web site that works as an application almost certainly uses forms as an interface to a back end database. Any web site that registers users, or asks for contact information probably uses a form.
Frankly, this scares people. But never fear! The DOM level 0 is here to save the day! Find out how to easily script forms and make your scripts more readable, too.