Chapter 15

JavaScript Forms and Data

Key Skills & Concepts

   Accessing Forms

   Using the Properties and Methods of the Form Object

   Ensuring the Accessibility of Forms

   Validating Forms

   HTML5 and Forms

   AJAX and JSON

When you use JavaScript to access forms, you can create new scripts for your Web pages. This chapter begins by explaining how to access a form with JavaScript. Then you’ll learn about the various properties and methods to use with forms and form elements. You’ll also learn about forms and accessibility, how to validate form elements, and how to use <select></select> elements as navigational tools.

Accessing Forms

Each time you add a set of <form> and </form> tags to an HTML document, a form object is created. To ...

Get JavaScript: A Beginner's Guide, Fifth Edition, 5th Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.