-
Notifications
You must be signed in to change notification settings - Fork 9
/
ult.html
24 lines (24 loc) · 1.21 KB
/
ult.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" href="jquery-ui.css" />
<script src="jquery-1.8.2.js"></script>
<script src="jquery-ui.js"></script>
<script src="jquery.fireEvent.js"></script> <!-- fix D3/jQuery interoperability issues -->
<script src="ultbuttons.js"></script> <!-- fix jQuery UI bug with checkbox buttons -->
</head>
<body>
<div id="box">
<input type="radio" name="rb" value="0" id="radio1" /><label for="radio1">R1</label>
<input type="radio" name="rb" value="1" id="radio2" /><label for="radio2">R2</label>
<input type="radio" name="rb" value="2" id="radio3" /><label for="radio3">R3</label>
</div>
<script>
document.getElementById("radio1").addEventListener("change", function() {console.log(this.value);});
document.getElementById("radio2").addEventListener("change", function() {console.log(this.value);});
document.getElementById("radio3").addEventListener("change", function() {console.log(this.value);});
$("#box").buttonset();
</script>
</body>
</html>