mirror of
https://github.com/jimeh/suggest_results.git
synced 2026-02-18 20:36:40 +00:00
54 lines
1.3 KiB
HTML
54 lines
1.3 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
|
|
|
<title>examples</title>
|
|
|
|
<script src="javascripts/jquery.js" type="text/javascript" charset="utf-8"></script>
|
|
<script src="suggest_results/jquery.suggest_results.js" type="text/javascript" charset="utf-8"></script>
|
|
|
|
<link rel="stylesheet" href="suggest_results/jquery.suggest_results.css" type="text/css" media="screen" title="no title" charset="utf-8">
|
|
|
|
<script type="text/javascript" charset="utf-8">
|
|
$(document).ready(function(){
|
|
|
|
var data = [
|
|
{title: "hello", url: "/hello", match: "hello hey"},
|
|
{title: "world", url: "/world", match: "world hey"},
|
|
{title: "foo", url: "/foo", match: "foo hex"},
|
|
{title: "bar", url: "/bar", match: "bar hex"}
|
|
];
|
|
|
|
$("input").suggest_results({data: data});
|
|
|
|
// $(document).keyup(function(e){
|
|
// console.log(e.keyCode);
|
|
// })
|
|
|
|
});
|
|
</script>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<br />
|
|
<br />
|
|
<input type="text" name="example1" value="" id="example1" />
|
|
|
|
<br />
|
|
<br />
|
|
<input type="text" name="example2" value="" id="example2" />
|
|
|
|
|
|
<br />
|
|
<br />
|
|
<input type="text" name="example3" value="" id="example3" />
|
|
|
|
|
|
</body>
|
|
</html>
|