Created
November 23, 2016 03:44
-
-
Save bruno78/319aa871bfcb2c4a96c4793fb6ab06cf to your computer and use it in GitHub Desktop.
An example of implementation of autocomplete using jQuery
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
$(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