-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
43 lines (38 loc) · 1.18 KB
/
index.html
File metadata and controls
43 lines (38 loc) · 1.18 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>DataForm Example</title>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
<script type="text/javascript" src="./dataform.js"></script>
</head>
<body style="padding:4em;">
<div class="container">
<div class="col-md-3 col-md-offset-2">
<H3>LOGIN PAGE</H3>
<form>
<div class="form-group">
<label for="iuser">Username</label>
<input type="text" name="iuser" class="form-control" />
</div>
<div class="form-group">
<label for="xpass">Password</label>
<input type="password" name="xpass" class="form-control" />
</div>
<div class="form-group">
<label for="comment">Details</label>
<textarea rows="4" cols="50" name="comment" class="form-control" ></textarea>
</div>
<input type="submit" class="btn btn-danger" value="Submit" class="form-control" />
</form>
</div>
</div>
<!-- Your script will come here -->
<script type="text/javascript">
var form = document.getElementsByTagName('form')[0]
var df = new DataForm(form);
var data = {"iuser":"deepak","comment":"This is comment"};
df.fill(data);
</script>
</body>
</html>