How to create auto-complete j-query dropdown in a textbox as similar to google home

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mkk47
    New Member
    • Dec 2018
    • 2

    How to create auto-complete j-query dropdown in a textbox as similar to google home

    HI,
    Can anyone provide me better suggestion for (j-query autocomplete) or (javascript) autocomplete code in a textbox.Any of the code ,make sure it should be in textbox not a dropdownbox.

    Thank You
  • gits
    Recognized Expert Moderator Expert
    • May 2007
    • 5388

    #2
    what have you tried so far and with what exactly do you have problems with in your code?

    Comment

    • AjayGohil
      New Member
      • Apr 2019
      • 83

      #3
      try to this code for autocomplete
      Code:
      <!DOCTYPE html>
      <html>
          <head>
              <title>Autocomplete</title>
              <meta name="viewport" content="width=device-width initial-scale=1"> 
        
              <link href = "https://code.jquery.com/ui/1.10.4/themes/ui-lightness/jquery-ui.css"
              rel = "stylesheet">
           <script src = "https://code.jquery.com/jquery-1.10.2.js"></script>
           <script src = "https://code.jquery.com/ui/1.10.4/jquery-ui.js"></script>
              <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
       <script type="text/javascript">
          $( function() {
          var language = [
            "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: language
          });
        } );
        </script>
      </head>
      <body>
       
      <div class="ui-widget">
        <label for="tags">Tags: </label>
        <input id="tags">
      </div>
       
       
      </body>
      </html>

      Comment

      Working...