input:radio

Support

Creates a radio button control.

The radio button allows the user to choose one of a predefined set of options. You can define groups with the name attribute of the radio buttons.

If you need to use independent options, choose the input:checkbox element instead.

Example

<form method="post" action="#URL#">
<input type="radio" name="sex" id="radio_female" value="female" checked="checked" />
<label for="radio_female">female</label>
<br />
<input type="radio" name="sex" id="radio_male" value="male" />
<label for="radio_male">male</label>
<br /><br />
<input type="submit" value="Register" />
</form>

Preview