jquery-ui/demos/button/radio.html

40 lines
1.0 KiB
HTML
Raw Normal View History

<!DOCTYPE html>
2010-01-20 14:00:14 +00:00
<html lang="en">
<head>
2010-09-10 02:43:06 +00:00
<meta charset="utf-8">
<title>jQuery UI Button - Radios</title>
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
2012-08-13 13:19:09 +00:00
<script src="../../jquery-1.8.0.js"></script>
2010-09-10 02:43:06 +00:00
<script src="../../ui/jquery.ui.core.js"></script>
<script src="../../ui/jquery.ui.widget.js"></script>
<script src="../../ui/jquery.ui.button.js"></script>
<link rel="stylesheet" href="../demos.css">
<script>
2010-01-20 14:00:14 +00:00
$(function() {
2010-09-10 02:43:06 +00:00
$( "#radio" ).buttonset();
2010-01-20 14:00:14 +00:00
});
</script>
</head>
<body>
<div class="demo">
2010-09-10 02:43:06 +00:00
<form>
<div id="radio">
<input type="radio" id="radio1" name="radio" /><label for="radio1">Choice 1</label>
<input type="radio" id="radio2" name="radio" checked="checked" /><label for="radio2">Choice 2</label>
<input type="radio" id="radio3" name="radio" /><label for="radio3">Choice 3</label>
</div>
</form>
2010-01-20 14:00:14 +00:00
</div><!-- End demo -->
<div class="demo-description">
<p>A set of three radio buttons transformed into a button set.</p>
</div><!-- End demo-description -->
</body>
</html>