Wijmo User Guide > Widgets > Radio > Markup and Scripting |
The HTML markup for a wijradio widget looks like this.
Drop down to view markup
You can initialize the widget with the following jQuery script.
Drop down to view script
The markup and script featured here results in the following live widget. Click a radio button to select it.
There are several alternative ways to use markup to create a wijradio widget.
Sample Markup |
Copy Code
|
---|---|
<input type='radio'> |
or
Sample Markup |
Copy Code
|
---|---|
<input type='radio' id='radio1' /><label for='radio1'></label> |
or
Sample Markup |
Copy Code
|
---|---|
<label><input type='radio' /></label> |