Disabled stacked checkboxes and radios - HTML CSS Bootstrap

HTML CSS examples for Bootstrap:Form Control

Description

Disabled stacked checkboxes and radios

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
 <head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>Example of Bootstrap 3 Disabled Checkboxes and Radios</title>
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
 </head><!--from   www. j a v  a 2  s .c  om-->
 <body>
  <div>
   <form>
    <h4>Disabled stacked checkboxes</h4>
    <div class="checkbox disabled">
     <label><input type="checkbox" disabled> Disabled checkbox</label>
    </div>
    <div class="checkbox disabled">
     <label><input type="checkbox" disabled> Another disabled checkbox</label>
    </div>
    <br>
    <h4>Disabled stacked radios</h4>
    <div class="radio disabled">
     <label><input type="radio" disabled> Disabled radio</label>
    </div>
    <div class="radio disabled">
     <label><input type="radio" disabled> Another disabled radio</label>
    </div>
    <br>
    <h4>Disabled inline checkboxes</h4>
    <p> <label class="checkbox-inline disabled"><input type="checkbox" disabled> Disabled checkbox</label> <label class="checkbox-inline disabled"><input type="checkbox" disabled> Another disabled checkbox</label> </p>
    <br>
    <h4>Disabled inline radios</h4>
    <p> <label class="radio-inline disabled"><input type="radio" disabled> Disabled radio</label> <label class="radio-inline disabled"><input type="radio" disabled> Another disabled radio</label> </p>
   </form>
  </div>
 </body>
</html>

Related Tutorials