-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdemo.html
66 lines (60 loc) · 2.11 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title>jquery.customRadio</title>
<link rel="stylesheet" href="src/jquery.customRadio.css" />
<style type="text/css">
body {
font-family: "Helvetica Neue", "Lucida Grande", "Arial";
background: #F8F8F8;
background: #ECE9E9 -webkit-gradient(linear, 0% 0%, 0% 100%, from(#fff), to(#ECE9E9)) no-repeat;
background: #ECE9E9 -moz-linear-gradient(top, #fff, #ECE9E9) no-repeat;
color: #555;
font-size: 12px;
-webkit-text-stroke: 1px rgba(255, 255, 255, 0.1);
line-height: 17px;
}
.container {
width: 300px;
padding: 20px;
margin: 20px;
float: left;
}
</style>
</head>
<body>
<div class="container">
<h2>A simple form</h2>
<form>
<p>
<label for="textfield">Your name</label><br>
<input type="text" id="textfield" name="name">
</p>
<p>
<input type="radio" name="gender" value="male" id="gender_male"> <label for="gender_male">Male</label><br>
<input type="radio" name="gender" value="female" id="gender_female"> <label for="gender_female">Female</label><br>
<input type="radio" name="gender" value="undisclosed" id="gender_undis"> <label for="gender_undis">Undisclosed</label><br>
<input type="radio" name="gender" disabled value="disabled" id="gender_disabled"> <label for="gender_disabled">Disabled</label><br>
</p>
<p>
<label for="textfield-age">Your age</label><br>
<input type="text" id="textfield-age" name="age">
</p>
<p>
<input type="submit" value="Submit">
</p>
</form>
</div>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.11/jquery-ui.min.js"></script>
<script src="src/jquery.customRadio.js"></script>
<script>
$('input[type=radio]').customRadio();
$('form').submit(function () {
$('.container').append('<p>' + $('form').serialize() + '</p>');
return false;
});
</script>
</body>
</html>