JavaScriptJquery

AutoComplete Example In Jquery

<!DOCTYPE html>
<html lang="en">
<head>
  <title>JQUERY AutoComplete Example</title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css">  
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"></script>
  <script src="https://code.jquery.com/jquery-1.12.4.js"></script>
  <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
  <link rel="stylesheet" href="/resources/demos/style.css">
  <link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
</head>
<body>

<h1 class="text-success" align="center">JQUERY AutoComplete Example</h1><br>
<div class="container">
	<div class="col-sm-6"><label for="search">Search:</label>
  <input id="search" class="form-control">
  </div>
</div>
<script>
  $( function() {
    var availableTags = [
      "PHP",
      "Codeigniter",
      "Laravel",
      "Symfony",
      "HTML",
      "C++",
      "MYSQL",
      "COBOL",
      "PostgreSQL",
      "Oracle",
      "JQuery",
      "Angular",
      "JavaScript",
      "Python",     
      "Scala",
      "Scheme"
    ];
    $( "#search" ).autocomplete({
      source: availableTags
    });
  } );
  </script>

 
</body>
</html>

Related Articles

Leave a Reply

Back to top button