jQuery UI & Button: Radio Button

This entry is part 4 of 5 in the series jQuery UI Button

jQuery UI Button – Radios

Here, a set of three radio buttons transformed into a button set.

<!doctype html>
<html lang='en'>
    <meta charset='utf-8'>
    <title>jQuery UI Button - Radios</title>
    <link rel='stylesheet' href='//code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css'>
    <script src='//code.jquery.com/jquery-1.9.1.js'></script>
    <script src='//code.jquery.com/ui/1.10.4/jquery-ui.js'></script>
    <link rel='stylesheet' href='http://codecrawl.com/code/jqueryui/jqueryui_style.css'>
        $(function () {

    <div id='radio'>
        <input type='radio' id='radio1' name='radio'><label for='radio1'>Choice 1</label>
        <input type='radio' id='radio2' name='radio' checked='checked'><label for='radio2'>Choice 2</label>
        <input type='radio' id='radio3' name='radio'><label for='radio3'>Choice 3</label>

Try The Code

Series Navigation<< jQuery UI & Button: Checkbox
jQuery UI & Button: Buttons with Icons >>

Leave a comment

Leave a Reply