mirror of
https://github.com/jimeh/fancy_input.git
synced 2026-02-19 11:36:41 +00:00
initial commit
This commit is contained in:
53
examples.html
Normal file
53
examples.html
Normal file
@@ -0,0 +1,53 @@
|
||||
<!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>
|
||||
Reference in New Issue
Block a user