• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 13. Working with Text and Select Controls

Chapter 13. 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 this basic control since Chapter 1, “Essential JavaScript,” both to display and read text, and we’re no strangers to code like this, which displays a message, You clicked the button!, in a text field when the user clicks a button:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint