1 |
<!doctype html> |
2 |
<html lang="en"> |
3 |
<head> |
4 |
<meta charset="utf-8"> |
5 |
<title>jQuery UI Button - Radios</title> |
6 |
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css"> |
7 |
<script src="../../jquery-1.9.1.js"></script> |
8 |
<script src="../../ui/jquery.ui.core.js"></script> |
9 |
<script src="../../ui/jquery.ui.widget.js"></script> |
10 |
<script src="../../ui/jquery.ui.button.js"></script> |
11 |
<link rel="stylesheet" href="../demos.css"> |
12 |
<script> |
13 |
$(function() { |
14 |
$( "#radio" ).buttonset(); |
15 |
}); |
16 |
</script> |
17 |
</head> |
18 |
<body> |
19 |
|
20 |
<form> |
21 |
<div id="radio"> |
22 |
<input type="radio" id="radio1" name="radio" /><label for="radio1">Choice 1</label> |
23 |
<input type="radio" id="radio2" name="radio" checked="checked" /><label for="radio2">Choice 2</label> |
24 |
<input type="radio" id="radio3" name="radio" /><label for="radio3">Choice 3</label> |
25 |
</div> |
26 |
</form> |
27 |
|
28 |
<div class="demo-description"> |
29 |
<p>A set of three radio buttons transformed into a button set.</p> |
30 |
</div> |
31 |
</body> |
32 |
</html> |