Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@bruno78
Created November 23, 2016 03:44
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 bruno78/319aa871bfcb2c4a96c4793fb6ab06cf to your computer and use it in GitHub Desktop.
Save bruno78/319aa871bfcb2c4a96c4793fb6ab06cf to your computer and use it in GitHub Desktop.
An example of implementation of autocomplete using jQuery
$(document).ready(function() {
//array
var books = ["Pride and Prejudice", "Running with Scissors", "The DaVinci Code", "The Aeneid"];
// element tag from html and using array as source
$("#tags").autocomplete({source: books});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment