Click here to Skip to main content
15,879,535 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I write a code for Autocomplete, but at run time its not working. plz help me. my code is as follow:

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

1 solution

 
Share this answer
 
Comments
RaginiSinha 19-Jul-13 2:51am    
thank you
ridoy 19-Jul-13 5:27am    
Glad to help you :)

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