Wednesday, April 3, 2013

jQuery autocomplete UI - text hint like google search

The Autocomplete widgets in jQuery provides suggestions while you type into the field, similar to text hint in Google search. The hints are stored in an tag array in JavaScript. Detail can be found:
Demo:  type ja to try

Demo source code:
<!doctype html> <html lang="en"> <head> <meta charset="utf-8" /> <title>jQuery UI Autocomplete - Default functionality</title> <link rel="stylesheet" href="" /> <script src=""></script> <script src=""></script>
<link rel="stylesheet" href="/resources/demos/style.css" />
$(function() {
var availableTags = [
$( "#tags" ).autocomplete({
source: availableTags
<div class="ui-widget">
<label for="tags">Tags: </label>
<input id="tags" />

No comments:

Post a Comment