-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMaterialize-Selects-Example.html
105 lines (96 loc) · 4.2 KB
/
Materialize-Selects-Example.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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<html>
<head>
<title>The Materialize Selects Example</title>
<meta name = "viewport" content = "width = device-width, initial-scale = 1">
<link rel = "stylesheet"
href = "https://fonts.googleapis.com/icon?family=Material+Icons">
<link rel = "stylesheet"
href = "https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/css/materialize.min.css">
<script type = "text/javascript"
src = "https://code.jquery.com/jquery-2.1.1.min.js"></script>
<script src = "https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/js/materialize.min.js">
</script>
<script>
$(document).ready(function() {
$('select').material_select();
});
</script>
</head>
<body class = "container">
<div class = "row">
<form class = "col s12">
<div class = "row">
<label>Materialize Select</label>
<select>
<option value = "" disabled selected>Select Fruit</option>
<option value = "1">Mango</option>
<option value = "2">Orange</option>
<option value = "3">Apple</option>
</select>
</div>
<div class = "row">
<label>Materialize Multi Select</label>
<select multiple>
<option value = "" disabled selected>Select Fruit</option>
<option value = "1">Mango</option>
<option value = "2">Orange</option>
<option value = "3">Apple</option>
</select>
</div>
<div class = "row">
<label>Select with Optgroup</label>
<select>
<optgroup label = "Fruits">
<option value = "1">Mango</option>
<option value = "2">Orange</option>
<option value = "3">Apple</option>
</optgroup>
<optgroup label = "Vegs">
<option value = "4">Brinjal</option>
<option value = "5">Potato</option>
<option value = "6">Tomato</option>
</optgroup>
</select>
</div>
<div class = "row">
<label>Select with images</label>
<select class = "icons">
<option value = "" disabled selected>Select Technology</option>
<option value = "1" data-icon = "/html5/images/html5-mini-logo.jpg" class = "circle">
HTML</option>
<option value = "2">JavaScript</option>
<option value = "3">CSS</option>
</select>
</div>
<div class = "row">
<label>Browser default Select</label>
<select class = "browser-default">
<option value = "" disabled selected>Select Fruit</option>
<option value = "1">Mango</option>
<option value = "2">Orange</option>
<option value = "3">Apple</option>
</select>
</div>
<div class = "row">
<label>Disabled Materialize Select</label>
<label>Disabled Materialize Select</label>
<select disabled>
<option value = "" disabled selected>Select Fruit</option>
<option value = "1">Mango</option>
<option value = "2">Orange</option>
<option value = "3">Apple</option>
</select>
</div>
<div class = "row">
<label>Disabled Browser default Select</label>
<select class = "browser-default" disabled>
<option value = "" disabled selected>Select Fruit</option>
<option value = "1">Mango</option>
<option value = "2">Orange</option>
<option value = "3">Apple</option>
</select>
</div>
</form>
</div>
</body>
</html>