Chapter 13. Working with Text and Select Controls

Working with Text and Select Controls

In this chapter, we’ll take a look at the HTML text and select controls. That includes more than you might think—text fields, password controls, hidden controls, text areas, select controls, option elements, option group elements, and so on. All these controls are central to any JavaScript programmer’s arsenal, so what we see here will be a good part of our JavaScript foundation, just as working with button controls was in the preceding chapter.

For example, it’s hard to imagine a substantial JavaScript-based web page that accepts text input from a user without using text fields. We’ve worked with ...

Get Inside JavaScript now with O’Reilly online learning.

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