Hello Freinds, Today I well tell you that How to Create Autocomplete Search Box via Javascript or JQuery. So let’s go.
First of all, create a file of autocomplete.html and add the code given below to that file and save it in any of your folders, and then run that file on the browser.
Keywords :- How to Make Autocomplete Search Box Using Jquery, Autocomplete Searching Create by JS, Create Simple Autocomplete Search Using HTML & JQuery
autocomplete.html
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Create Autocomplete Search Box in JQuery or JavaScript</title> <link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css"> <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> <script> $( function() { var Tags = [ "C", "C++", "Java", "JavaScript", "Lisp", "Perl", "PHP", "Python", "Ruby" ]; $( "#autosearch" ).autocomplete({ source: Tags }); } ); </script> </head> <body> <div class="ui-widget"> <label for="autosearch">Tags: </label> <input id="autosearch"> </div> </body> </html>