From the course: jQuery Mobile Essential Training
Unlock the full course today
Join today to access over 22,700 courses taught by industry experts or purchase this course individually.
Using radio buttons and check boxes - jQuery Mobile Tutorial
From the course: jQuery Mobile Essential Training
Using radio buttons and check boxes
Okay now let's take a look at how Radio buttons and Check boxes work, so here in the snippets scroll down in chapter three to the Radio buttons and Check boxes section and let's open up Radios checks underscore start cause this is the example file that we're going to use. And I'm going to start off by Copying this first fieldset right here. So we'll copy that and we'll Paste it into the content. And I'll just close off that form. Alright. Okay. So the first thing that we're going to look at is radio buttons. So here, you can see, I've got a fieldset and I've assigned a data roll of control group here. And again, the reason I'm assigning a control group is because I want each one of these Radiobuttons to appear as a unified set of controls and I'm not specifying the direction so in this case they're going to be vertical by default. So I have a legend here that says Select an option. And then I've got four label and control sets. So here's Radiobutton one, and then there's two, three…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.