-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathindex.html
95 lines (86 loc) · 3.91 KB
/
index.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
<!DOCTYPE html>
<html lang='en'>
<head>
<meta charset="utf-8">
<title>Bootstrap Dropdown</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Bootstrap Dropdown Demo">
<meta name="author" content="Jim Lim">
<link href="css/bootstrap.min.css" media="all" rel="stylesheet" type="text/css" />
<link href="css/bootstrap-select.css" media="all" rel="stylesheet" type="text/css" />
<script src="js/jquery-1.7.2.min.js" type="text/javascript"></script>
<script src="js/bootstrap.min.js" type="text/javascript"></script>
<script src="js/bootstrap-select.js" type="text/javascript"></script>
</head>
<body>
<div class='container'>
<section>
<div class='page-header'>
<h1>Bootstrap Select</h1>
</div>
<div class='row span6 offset3'>
<form class='form-horizontal' action=''>
<fieldset>
<!-- PREPEND EXAMPLE -->
<div class='control-group'>
<label class='control-label'>Prepend</label>
<div class='controls'>
<div class='input-prepend dropdown' data-select='true'>
<!-- there must not be a space between the prepend toggle and the input field -->
<a class='add-on dropdown-toggle' data-toggle='dropdown' href='#'>
<!-- span.dropdown-display will be updated with the text from the selected option -->
<span class='dropdown-display'>http://</span>
<i class='caret'></i>
</a><input type='text' placeholder='jh-lim.com' class='span2' />
<!-- this hidden field is used to contain the selected option from the dropdown -->
<input type='hidden' value='http://' class='dropdown-field' />
<!-- unordered list of options -->
<ul class='dropdown-menu'>
<li>
<a href="#" data-value="http://">http://</a>
</li>
<li>
<a href="#" data-value="https://">https://</a>
</li>
</ul>
</div>
</div>
</div>
<!-- /PREPEND EXAMPLE -->
<!-- APPEND EXAMPLE -->
<div class='control-group'>
<label class='control-label'>Append</label>
<div class='controls'>
<div class='input-append dropdown' data-select='true'>
<!-- The hidden field can be anywhere within div.dropdown -->
<input type='hidden' value='' class='dropdown-field' />
<!-- Unordered list of options -->
<ul class='dropdown-menu'>
<li>
<a href="http://localhost:3000/" data-value="minutes">minutes</a>
</li>
<li>
<a href="http://localhost:3000/" data-value="hours">hours</a>
</li>
<li>
<a href="http://localhost:3000/" data-value="days">days</a>
</li>
</ul>
<!-- Make sure there isn't a space between the input and the toggle -->
<input type='number' placeholder='5' class='input-mini'/><a
class='add-on dropdown-toggle'
data-toggle='dropdown' href='#'>
<span class='dropdown-display'>minutes</span>
<i class='caret'> </i>
</a>
</div>
</div>
</div>
<!-- /APPEND EXAMPLE -->
</fieldset>
</form>
</div><!-- /.row -->
</section>
</div><!-- /.container -->
</body>
</html>