Click here to Skip to main content
15,937,186 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi I am not able to understand where I am going wrong in creating auto fill textbox.

Here is my jquery code:
function BindTexbox(data) {
            var availableTags = [
                source: availabletags


And this is my HTML Markup
<input type="text" id="txt_membrid_name" class="tb" onkeyup="GetTxtBoxVal();" />

everything works fine. I get respone from my onkey up event and on success I enter into BindTexbox(data).
Somehow my code wasn't working so I tried with dummy array ie; availabletags.
But every time I am geting this error autocomplete is not a method defined.

I am using following js files:
<script src="../../Scripts/Core/jquery-ui.js" type="text/javascript"></script>
    <script src="../../Scripts/JS_UI_Effects/jquery.ui.widget.js" type="text/javascript"></script>
    <script src="../../Scripts/JS_UI_Effects/jquery-ui-1.8.7.custom.min.js" type="text/javascript"></script>
    <script src="../../Scripts/Core/jquery-1.8.3.js" type="text/javascript"></script>
    <script src="../../Scripts/Core/jquery.ui.autocomplete.js" type="text/javascript"></script>
    <link href="../../Styles/Content/themes/base/jquery.ui.autocomplete.css" rel="stylesheet"
        type="text/css" />

Please tell me where I am going wrong and how to rectify it. I am new in JQuery.

Many Thanks.


1 solution

replace availabletags in ur jQuery code with availableTags
Share this answer

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