jQuery Mobile: Disabled Checkbox

To disable a checkbox,  we put a disabled attribute in the html.

<!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>Upwhere</title>
</head>
<body>
<div data-role='page'>
    <div data-role='header'><h1>Disabled Checkbox</h1></div>
    <br>
    <p>Disabled</p>
    <form>
        <input disabled='' type='checkbox' name='checkbox_n' id='checkbox_d' data-theme='a'>
        <label for='checkbox_d'>One</label>
    </form>

    <div data-role='footer' data-position='fixed'>
        <h1>Footer</h1>
    </div>
</div>
</body>
</html>
Try The Code
Series Navigation<< jQuery Mobile: Theme B Checkbox
jQuery Mobile: All Checkboxes >>