Click here to Skip to main content
14,920,001 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi i write a code to enable autocomplete feature of jquery in input control ...but its not working .please help me. following is my code:
XML
<html>
<head>
    <meta charset="uth-8"/>
    <title>Jquery autocomplete</title>
    <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
    <script src="http://code.jquery.com/jquery-1.9.1.js"></script>
    <script src="http://code.jquery.com/ui/-1.10.3/jquery-ui.js.js"></script>
    <link rel="stylesheet" href="/resoursec/demoes/style.css" />
    <script>
        $(function(){
                var availableTags=[
                                    "ActionScript",
                                    "AppleScript"'
                                    "ASP",
                                    "BASIC",
                                    "Clojure",
                                    "Groovy",
                                    "JavaScript",
                                    "Lisp"'
                                    "PHP"'
                                    "Perl"];
                $('#tgs').autocomplete({
                        source:availableTags;
                    });
        } );
    </script>
</head>
<body>
   <div class="ui-widget">
      <label for="tags">Tags: </label>
      <input id="tags" />
   </div>
</body>
</html>
Posted
Comments
ridoy 18-Jul-13 13:52pm
   
why you post same question twice?! See my answer at http://www.codeproject.com/Questions/622948/Autocomplete-in-textbox-using-JQuery-and-PHP

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900