This repository was archived by the owner on Feb 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 103
Expand file tree
/
Copy pathbootstrapForm.html
More file actions
49 lines (45 loc) · 1.72 KB
/
bootstrapForm.html
File metadata and controls
49 lines (45 loc) · 1.72 KB
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="./floatlabels.js"></script>
<!--<link rel="stylesheet" href="./floatlabels.css">-->
<title>Floating labels</title>
</head>
<body>
<div class="container">
<h1>Bootstrap floating labels</h1>
<form role="form">
<div class="row">
<div class="form-group col-xs-12">
<input class="form-control floatlabel" type="text" name="title" placeholder="Title" value="test">
</div>
</div>
<div class="row">
<div class="form-group col-xs-6">
<input class="form-control floatlabel" type="text" name="price" placeholder="Price">
</div>
<div class="form-group col-xs-6">
<select class="form-control floatlabel" placeholder="Specific location (optional)">
<option></option><option selected>Ontario</option><option>Quebec</option><option>Other</option>
</select>
</div>
</div>
<div class="row">
<div class="form-group col-xs-12">
<textarea placeholder="Description" class="form-control floatlabel" rows="5"></textarea>
</div>
</div>
</form>
</div>
</body>
</html>
<script type="text/javascript">
$(document).ready(function () {
//$('.floatlabel').floatlabel({ labelStartTop: '-5px', paddingOffset : '3px', backgroundColor: 'white' });
$('.floatlabel').floatlabel();
});
</script>