Autocomplete Textbox Using Jquery Integration Auto suggestion

Autocomplete Textbox Using Jquery : I am working on a project which need to do something like that user enter some letter and that will suggest data from database or some static array.

Bia research on google and many sites finally i got Jquery autocomplete to do this task easily.

Enables users to quickly find and select from a pre-populated list of values as they type, leveraging searching and filtering.

The Autocomplete widgets provides suggestions while you type into the field. Here the suggestions are tags for programming languages, give “ja” (for Java or JavaScript) a try.

<!doctype html> 
<html lang="en"> 
<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 = [ "ActionScript", "AppleScript", "Asp", "BASIC", "C", "C++", "Clojure", "COBOL", "ColdFusion", "Erlang", "Fortran", "Groovy", "Haskell", "Java", "JavaScript", "Lisp", "Perl", "PHP", "Python", "Ruby", "Scala", "Scheme" ]; 
    $( "#tags" ).autocomplete({ source: availableTags }); 
<div class="ui-widget"> 
<label for="tags">Tags: </label> 
<input id="tags"> 



About Amit Kumar

I am Amit, I am software engineer with 10 Years of experience. I am a blogger and affiliate marketer.

View all posts by Amit Kumar →

Leave a Reply

Your email address will not be published.