Created
August 17, 2014 07:03
-
-
Save paulallies/5a15ccbfbece9e9d02b9 to your computer and use it in GitHub Desktop.
JQuery UI AutoComplete JQuery UI AutoComplete // source http://jsbin.com/lobaj/3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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