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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.