Chapter 7: Form Handling

Return to Chapter 7

 

To use this script on your own page, click in the text area below, select all, and copy to grab the script. Then, just paste into your own page — and you're done.

Working with Radio Buttons

See it run: Working with Radio Buttons

Script 7.12

When working with radio buttons, only one radio button in a group may be checked, and this JavaScript is there to enforce the user interface law.