jQuery Mobile: Disabled Checkbox

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

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

<!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>Disabled Checkbox</h1></div>
        <input disabled='' type='checkbox' name='checkbox_n' id='checkbox_d' data-theme='a'>
        <label for='checkbox_d'>One</label>

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