jQuery Mobile: Mini Size Checkbox

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

To create a mini size checkbox, we need to add

data-mini='true'

Upwhere
The code is as show below:

<!DOCTYPE html>
<html>
<head>
    <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>
    <title>Codecrawl</title>
</head>
<body>
<div data-role='page'>
    <div data-role='header'><h1>Mini Size Checkbox</h1></div>
    <br>
    <p>Mini Size Check Box</p>
    <form>
        <input type='checkbox' name='checkbox_mini' id='checkbox_mini' data-mini='true'>
        <label for='checkbox_mini'>I agree</label>
    </form>
    <br>

    <div data-role='footer' data-position='fixed'>
        <h1>Footer</h1>
    </div>
</div>
</body>
</html>
Try The Code
Series Navigation<< jQuery Mobile: Basic Check Box
jQuery Mobile: Vertically Grouped Checkbox >>