jQuery Mobile: Mini Size Radio Buttons

This entry is part 23 of 73 in the series jQuery Mobile

For a more compact mini size radio button, add the data-mini=’true’ attribute to the element to create a mini version.

<!DOCTYPE html>
    <link href='http://code.jquery.com/mobile/1.4.0/jquery.mobile-1.4.0.min.css' rel='stylesheet'/>
    <script src='http://code.jquery.com/jquery-1.10.2.min.js'></script>
    <script src='http://code.jquery.com/mobile/1.4.0/jquery.mobile-1.4.0.min.js'></script>
<div data-role='page'>
    <div data-role='header'><h1>Mini Size Radio Buttons</h1></div>

    <p>Mini Size Radio Buttons</p>

        <fieldset data-role='controlgroup' data-mini='true'>
            <input type='radio' name='radio_choice' id='radio_choice_id1' value='on' checked='checked'>
            <label for='radio_choice_id1'>One</label>
            <input type='radio' name='radio_choice' id='radio_choice_id2' value='off'>
            <label for='radio_choice_id2'>Two</label>
            <input type='radio' name='radio_choice' id='radio_choice_id3' value='other'>
            <label for='radio_choice_id3'>Three</label>

    <div data-role='footer' data-position='fixed'>
Try The Code
Series Navigation<< jQuery Mobile: Horizontal Radio Button Group
jQuery Mobile: Vertically Grouped Radio Buttons >>

Leave a comment

Leave a Reply