-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtest.html
42 lines (42 loc) · 1.39 KB
/
test.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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>listface test page</title>
<link rel="stylesheet" href="screen.css" type="text/css" media="screen" charset="utf-8" />
<script type="text/javascript" charset="utf-8" src="jquery-1.3.2.min.js"></script>
<script type="text/javascript" charset="utf-8" src="jquery.listface.js"></script>
<script type="text/javascript" charset="utf-8">
$(document).ready(function() { $.listface('#users', { url: 'users.json', min: 2, attribute: { value: "id", name: "name" } }) })
$(document).ready(function() {
$.listface('#people', {
url: 'users.json',
min: 2,
attribute: { value: "id", name: "name" },
defaults: [{id: 888, name: 'Bob'}]
});
})
</script>
</head>
<body>
<div id="wrap">
<form action="#" method="post" accept-charset="utf-8">
<p>
<label>Users</label>
</p>
<p>
<input type="text" name="users" value="" id="users" />
</p>
<p>
<label>Other people</label>
</p>
<p>
<input type="text" name="people" value="" id="people">
<p>
<button type="submit">Submit</button>
</p>
</form>
</div>
</body>
</html>