dizmoElements radiobutton

A normal radiobutton element styled to match the dizmo theme. To create a group of radio buttons, use the same name attribute for each member of a group.

Visual

image-radiobutton
image-radiobutton

Data type

<label for="r1">Radio 1</label><input type="radio" id="r1" data-type="dizmo-radiobutton" value="1" name="choice">
<label for="r2">Radio 2</label><input type="radio" id="r2" data-type="dizmo-radiobutton" value="2" name="choice">

Constraints

The type works only on radiobutton elements.

Usage

To get the value of the checked radiobutton in the group, use the following call:

var data=DizmoElements('input[name=choice]:checked').val();