CheckBox
Description
Bootstrap makes a set of checkboxes or radio buttons into a set of Bootstrap buttons that are placed alongside each other.
Example
<!DOCTYPE html>
<html lang="en">
<head>
<script type='text/javascript'
src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
<link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.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>
<script type="text/javascript">
<!--from w ww .j a v a2s . co m-->
</script>
</head>
<body style='margin:30px'>
<div class="btn-group" data-toggle="buttons">
<label class="btn btn-default">
<input type="checkbox"> Option 1
</label>
<label class="btn btn-default">
<input type="checkbox"> Option 2
</label>
<label class="btn btn-default">
<input type="checkbox"> Option 3
</label>
</div>
</body>
</html>
You can create multi-colored buttons in the button group by mixing Bootstrap's button classes, such as btn-primary, btn-info, and so on.