-
Notifications
You must be signed in to change notification settings - Fork 0
/
form.html
85 lines (76 loc) · 2.85 KB
/
form.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Title of the document</title>
<link rel="stylesheet" href="css/demo.css">
<link rel="stylesheet" href="css/material.css">
<script src="js/jquery-1.11.2.min.js"></script>
<script src="js/material.js"></script>
</head>
<body>
Radio:
<div class="m-radio">
<input type="radio" name="power" id="power1" />
<label for="power1">1x power</label>
</div>
<div class="m-radio">
<input type="radio" name="power" id="power2" />
<label for="power2">2x power</label>
</div>
<div class="m-radio">
<input type="radio" name="power" id="power4" disabled="disabled" checked="checked" />
<label for="power4">4x power (disabled)</label>
</div>
<br />
Checkbox options:
<div class="m-checkbox-checkmark">
<input type="checkbox" name="water" id="water0" />
<label for="water0">0x power</label>
</div>
<div class="m-checkbox-checkmark">
<input type="checkbox" disabled="disabled" checked="checked" name="water" id="water-1" />
<label for="water-1">0x power</label>
</div>
<div class="m-checkbox">
<input type="checkbox" name="water" id="water1" />
<label for="water1"><span class="m-checkbox-check"></span>1x power</label>
</div>
<div class="m-checkbox">
<input type="checkbox" name="water" id="water2" />
<label for="water2">2x power (no checkmark)</label>
</div>
<div class="m-checkbox">
<input type="checkbox" name="water" id="water4" disabled="disabled" checked="checked" />
<label for="water4"><span class="m-checkbox-check"></span>4x power (disabled)</label>
</div>
<div class="m-checkbox">
<input type="checkbox" name="water" id="water10" disabled="disabled" checked="checked" />
<label for="water10">10x power (disabled, no checkmark)</label>
</div>
<br />
Input (floating label): <br />
<br />
<div class="m-input">
<input id="input1" type="text" maxlength="20" />
<label for="input1">Name [maxlength=20]</label>
</div>
<div class="m-input">
<input id="input2" type="text" value="abc" />
<label for="input2">Name</label>
</div>
<div class="m-input">
<input id="input5" class="m-datepicker" type="text" value="12-05-1989" />
<label for="input5">Date</label>
</div>
<div class="m-input">
<input id="input4" disabled="disabled" type="text" value="A disabled input" />
<label for="input4">Name</label>
</div>
<div class="m-input m-error">
<input id="input3" type="text" value="input with error" maxlength="20" />
<label for="input3">Name</label>
<label class="m-error-label" for="input3">Username or Password is incorrect.</label>
</div>
</body>
</html>