-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
36 lines (36 loc) · 888 Bytes
/
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
<!DOCTYPE html>
<html>
<head>
<title>Dynamic Validator</title>
<link rel="stylesheet" type="text/css" href="src/dynamic_validator.css">
<script src="bower_components/jquery/dist/jquery.min.js"></script>
<script type="text/javascript" src="src/dynamic_validator.js"></script>
<script>
$(document).ready(function () {
dynamicValidator.init(
{
keyUpDelay: 1000,
inputSettings: [
{
selector: '#username',
path: 'http://localhost:3000/username/',
valueName: 'username'
}
]
}
);
});
</script>
</head>
<body>
<h1>Example Form</h1>
<form>
<div>
<label class="dynamic-validator">
username
<input type="text" id="username">
</label>
</div>
</form>
</body>
</html>