forked from InfomediaLtd/angular2-materialize
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index-materializecss.html
31 lines (29 loc) · 1.04 KB
/
index-materializecss.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
<html>
<head>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.6/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.6/js/materialize.min.js"></script>
</head>
<body>
<div class="form-group">
<select multiple>
<option value="0">choose one</option>
<option value="1">One</option>
<option value="2">Two</option>
<option value="3">Three</option>
</select>
<label>select Category </label>
</div>
<script>
$(document).ready(function() {
$('select').material_select();
window.setTimeout(() => {
$('select').append('<option value="4">Four</option>')
$('select').append('<option value="5">Five</option>')
$('select').append('<option value="6">Six</option>')
// $('select').material_select();
},1000);
});
</script>
</body>
</html>