forked from burknator/jquery.inlineComplete
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdemo.html
More file actions
26 lines (25 loc) · 1002 Bytes
/
demo.html
File metadata and controls
26 lines (25 loc) · 1002 Bytes
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
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title>jQuery.inlineComplete demo</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
<script type="text/javascript" src="jquery.inlinecomplete.js"></script>
<script type="text/javascript">
$(function() {
$('[name=artist].inline-complete').inlineComplete({
list: ["Daft Punk", "Deadmau5", "Rammstein", "Rihanna", "Eminem", "Michael Jackson"]
});
$('[name=artist].inline-complete').inlineComplete({
list: "artistlist.json"
});
});
</script>
</head>
<body>
<h1>Your favourite artist</h1>
<p>
Please type in your favourite artist: <input type="text" name="artist" class="inline-complete" id="" />
</p>
</body>
</html>