From the course: Building HTML5 Forms with Dreamweaver

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Adding sets of radio buttons

Adding sets of radio buttons - Dreamweaver Tutorial

From the course: Building HTML5 Forms with Dreamweaver

Start my 1-month free trial

Adding sets of radio buttons

- [Instructor] Bootstrap has some cool styling features for groups of radio buttons. That's where you give the user an option to select one and only one from a group or a set of options. And Bootstrap's set of radio buttons include the option to disable one button. I'll show you how that works and explain when you might want to do that. I'm going to switch to code view, by the way, because it's just more expedient for the coding we're about to do. I'll switch to code view. Then I can begin to define my first in a set of radio buttons. My input type is radio. Each radio button within a set needs its own ID. So I'm calling this one radio1 and I'm giving it a name of radio1 to help out the back end folks, who'll be programming the database that stores this data. And I am making this option checked by default. Notice that in this case, I've got the label at the end of the input type because people are used to looking to the right of a radio button for a label. And let me just clean up a…

Contents