How to use Jquery Autocomplete

The following example shows the usage of autocomplete functionality in Jquery. copy this code into your html editor and save it.

Then run the html page. Once you type the letter "a" you will be seeing the options which can be selected for autocomplete.

<!doctype html>
<html lang="en">
      <meta charset="utf-8">
      <title>jQuery Autocomplete functionality</title>
      <link href="" rel="stylesheet">
      <script src=""></script>
      <script src=""></script>
      <!-- Javascript -->
         $(function() {
            var availableLanguages = [
               "Visual Basic",
            $( "#automplete1" ).autocomplete({
               source: availableLanguages
      <!-- HTML -->
      <div class="ui-widget">
         <p>Type input</p>
         <label for="automplete1">Programming Languages: </label>
         <input id="automplete1">