实例代码“Ctrl+/”提示“F11/ESC”全屏 返回 格式化 恢复 运行
AخA
 
1
<!doctype html>
2
<html lang="en">
3
<head>
4
  <meta charset="utf-8">
5
  <title>jQuery UI 按钮(Button) - 单选</title>
6
  <link rel="stylesheet" href="//apps.bdimg.com/libs/jqueryui/1.10.4/css/jquery-ui.min.css">
7
  <script src="//apps.bdimg.com/libs/jquery/1.10.2/jquery.min.js"></script>
8
  <script src="//apps.bdimg.com/libs/jqueryui/1.10.4/jquery-ui.min.js"></script>
9
  <link rel="stylesheet" href="jqueryui/style.css">
10
  <script>
11
  $(function() {
12
    $( "#radio" ).buttonset();
13
  });
14
  </script>
15
</head>
16
<body>
17
 
18
<form>
19
  <div id="radio">
20
    <input type="radio" id="radio1" name="radio"><label for="radio1">选择 1</label>
21
    <input type="radio" id="radio2" name="radio" checked="checked"><label for="radio2">选择 2</label>
22
    <input type="radio" id="radio3" name="radio"><label for="radio3">选择 3</label>
23
  </div>
24
</form>
25
 
26
 
27
</body>
28
</html>