O'Reilly logo

Inside JavaScript by Steven Holzner

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 12. Working with Forms, Buttons, Check Boxes, and Radio Buttons

Working with Forms, Buttons, Check Boxes, and Radio Buttons

In this chapter, we’re going to start working with the HTML controls (the HTML data-entry elements, such as buttons, text fields, and so on) that many JavaScript programmers consider JavaScript to be all about. Here we’ll take a look at working with forms, buttons, check boxes, and radio buttons. We’ll also take a look at two elements closely allied to working with forms: the <FIELDSET> and <LEGEND> elements.

The <FORM> Element

The <FORM> element surrounds the kind of controls the user interacts with in a web page—buttons, radio buttons, check boxes, and so on. Forms not only ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required