aboutsummaryrefslogtreecommitdiffstats
path: root/demos/checkboxradio/radiogroup.html
blob: b307db82d7ffeada07036197ed9cd4da781b39ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<!doctype html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<title>jQuery UI Checkboxradio - Radio Group</title>
	<link rel="stylesheet" href="../../themes/base/all.css">
	<script src="../../external/jquery/jquery.js"></script>
	<script src="../../ui/core.js"></script>
	<script src="../../ui/widget.js"></script>
	<script src="../../ui/checkboxradio.js"></script>
	<script src="../../ui/controlgroup.js"></script>
	<link rel="stylesheet" href="../demos.css">
	<script>
	$(function() {
		$( "input" ).checkboxradio();
		$( "fieldset" ).controlgroup();
	});
	</script>
</head>
<body>
<div class="widget">

	<h2>Radio Group</h2>
	<fieldset>
		<legend>Select a Location: </legend>
		<label for="radio-1">New York</label>
		<input type="radio" name="radio-1" id="radio-1">
		<label for="radio-2">Paris</label>
		<input type="radio" name="radio-1" id="radio-2">
		<label for="radio-3">London</label>
		<input type="radio" name="radio-1" id="radio-3">
	</fieldset>
</div>

<div class="demo-description">
<p>Example markup using the controlgroup widget to create a radio group.</p>
</div>
</body>
</html>