-
Notifications
You must be signed in to change notification settings - Fork 2
/
demo.html
36 lines (35 loc) · 1.07 KB
/
demo.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
25
26
27
28
29
30
31
32
33
34
35
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>customRadioCheck</title>
<meta name="description" content="The HTML5 Herald">
<meta name="author" content="SitePoint">
<link rel="stylesheet" href="customRadioCheck.css">
<style type="text/css">
body { margin: 50px; font: 14px Arial; }
</style>
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<script src="customRadioCheck.js"></script>
</head>
<body>
<div>
<h3>Checks:</h3>
<label><input type="checkbox"/>Gorilla</label>
<label><input type="checkbox"/>Lamb</label>
<label><input type="checkbox"/>Tiger</label>
</div>
<div>
<h3>Radios:</h3>
<label><input type="radio" name="n"/>Green</label>
<label><input type="radio" name="n"/>Blue</label>
<label><input type="radio" name="n"/>Orange</label>
</div>
<script>
$('input[type=checkbox], input[type=radio]').customRadioCheck();
</script>
</body>
</html>