Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
77 lines (70 sloc) 2.27 KB
<!DOCTYPE html>
<html lang="en">
<meta charset="UTF-8" />
<title>Autocomplete Visual Test: Default</title>
<link rel="stylesheet" href="../visual.css" type="text/css" />
<link rel="stylesheet" href="../../../themes/base/jquery.ui.all.css" type="text/css" title="ui-theme" />
<script type="text/javascript" src="../../../jquery-1.4.2.js"></script>
<script type="text/javascript" src="../../../ui/jquery.ui.core.js"></script>
<script type="text/javascript" src="../../../ui/jquery.ui.widget.js"></script>
<script type="text/javascript" src="../../../ui/jquery.ui.position.js"></script>
<script type="text/javascript" src="../../../ui/jquery.ui.autocomplete.js"></script>
<script type="text/javascript" src=""></script>
<script type="text/javascript">
$(function() {
$.fn.themeswitcher && $('<div/>').css({
position: "absolute",
right: 10,
top: 10
function log(message) {
$("#log").attr("scrollTop", 0);
function enable() {
source: ["c++", "java", "php", "coldfusion", "javascript", "asp", "ruby", "python", "c", "scala", "groovy", "haskell", "perl"],
delay: 0,
search: function() {
log("Searching for: " + this.value);
open: function() {
log("Found something");
focus: function(event, ui) {
log("Moving focus to " + ui.item.label);
close: function() {
log("Hiding suggestions");
change: function(event, ui) {
log(ui.item ? ("Selected: " + ui.item.value) : "Nothing selected, input was " + this.value);
$("#toggle").toggle(function() {
}, enable);
<div class="ui-widget">
<label for="tags">Tags: </label>
<input class="ui-widget ui-widget-content ui-corner-all" id="tags" />
<label for="tags">Select: </label>
<div class="ui-widget" style="margin-top:2em; font-family:Arial">
<div id="log" style="height: 400px; width: 300px; overflow: auto;" class="ui-widget-content"></div>
<button id="toggle">Toggle widget</button>
Jump to Line
Something went wrong with that request. Please try again.