Skip to content

Instantly share code, notes, and snippets.

@paulallies
Created August 17, 2014 07:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save paulallies/5a15ccbfbece9e9d02b9 to your computer and use it in GitHub Desktop.
Save paulallies/5a15ccbfbece9e9d02b9 to your computer and use it in GitHub Desktop.
JQuery UI AutoComplete JQuery UI AutoComplete // source http://jsbin.com/lobaj/3
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="JQuery UI AutoComplete: Static DataSource" />
<link href="http://code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.min.css" rel="stylesheet" type="text/css" />
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
<script src="http://code.jquery.com/ui/1.10.4/jquery-ui.min.js"></script>
<meta charset="utf-8">
<title>JQuery UI AutoComplete</title>
</head>
<body>
<input id="elem"></input>
<div id="log" style="border:solid 1px black; height:300px;"></div>
<script id="jsbin-javascript">
var log = function(msg){
$("<div>", {text:msg}).prependTo("#log");
};
$("#elem").autocomplete({
source: ["Monday", "tuesday", "three"]
});
</script>
</body>
</html>
var log = function(msg){
$("<div>", {text:msg}).prependTo("#log");
};
$("#elem").autocomplete({
source: ["Monday", "tuesday", "three"]
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment