| 1 |
<!doctype html> |
| 2 |
<html lang="en"> |
| 3 |
<head> |
| 4 |
<meta charset="utf-8"> |
| 5 |
<title>jQuery UI Checkboxradio - Default functionality</title> |
| 6 |
<link rel="stylesheet" href="../../themes/base/all.css"> |
| 7 |
<link rel="stylesheet" href="../demos.css"> |
| 8 |
<script src="../../external/requirejs/require.js"></script> |
| 9 |
<script src="../bootstrap.js"> |
| 10 |
$( "input" ).checkboxradio(); |
| 11 |
</script> |
| 12 |
</head> |
| 13 |
<body> |
| 14 |
<div class="widget"> |
| 15 |
<h1>Checkbox and radio button widgets</h1> |
| 16 |
|
| 17 |
<h2>Radio Group</h2> |
| 18 |
<fieldset> |
| 19 |
<legend>Select a Location: </legend> |
| 20 |
<label for="radio-1">New York</label> |
| 21 |
<input type="radio" name="radio-1" id="radio-1"> |
| 22 |
<label for="radio-2">Paris</label> |
| 23 |
<input type="radio" name="radio-1" id="radio-2"> |
| 24 |
<label for="radio-3">London</label> |
| 25 |
<input type="radio" name="radio-1" id="radio-3"> |
| 26 |
</fieldset> |
| 27 |
|
| 28 |
<h2>Checkbox</h2> |
| 29 |
<fieldset> |
| 30 |
<legend>Hotel Ratings: </legend> |
| 31 |
<label for="checkbox-1">2 Star</label> |
| 32 |
<input type="checkbox" name="checkbox-1" id="checkbox-1"> |
| 33 |
<label for="checkbox-2">3 Star</label> |
| 34 |
<input type="checkbox" name="checkbox-2" id="checkbox-2"> |
| 35 |
<label for="checkbox-3">4 Star</label> |
| 36 |
<input type="checkbox" name="checkbox-3" id="checkbox-3"> |
| 37 |
<label for="checkbox-4">5 Star</label> |
| 38 |
<input type="checkbox" name="checkbox-4" id="checkbox-4"> |
| 39 |
</fieldset> |
| 40 |
|
| 41 |
<h2>Checkbox nested in label</h2> |
| 42 |
<fieldset> |
| 43 |
<legend>Bed Type: </legend> |
| 44 |
<label for="checkbox-nested-1">2 Double |
| 45 |
<input type="checkbox" name="checkbox-nested-1" id="checkbox-nested-1"> |
| 46 |
</label> |
| 47 |
<label for="checkbox-nested-2">2 Queen |
| 48 |
<input type="checkbox" name="checkbox-nested-2" id="checkbox-nested-2"> |
| 49 |
</label> |
| 50 |
<label for="checkbox-nested-3">1 Queen |
| 51 |
<input type="checkbox" name="checkbox-nested-3" id="checkbox-nested-3"> |
| 52 |
</label> |
| 53 |
<label for="checkbox-nested-4">1 King |
| 54 |
<input type="checkbox" name="checkbox-nested-4" id="checkbox-nested-4"> |
| 55 |
</label> |
| 56 |
</fieldset> |
| 57 |
</div> |
| 58 |
|
| 59 |
<div class="demo-description"> |
| 60 |
<p>Examples of the markup that can be used with checkboxes and radio buttons.</p> |
| 61 |
</div> |
| 62 |
</body> |
| 63 |
</html> |