Need help with Autocomplete Plugin JQuery

Need help with Autocomplete Plugin JQuery

We are using Limesurvey Application. In one of the questions, we need to auto-complete the answers.

Here is the workaround suggested in the documentation.

Use jQuery Autocomplete plugin to suggest answers for text inputs


http://docs.limesurvey.org/tiki-index.php?page=Workarounds:+Manipulating+a+survey+at+runtime+using+Javascript&structure=English+Instructions+for+LimeSurvey#Use_jQuery_Autocomplete_plugin_to_suggest_answers_for_text_inputs

Although I think now am able to paste the javascript in the sourccode of the question and guess that works fine.

I am still unable to get the jquery.autocomplete.js and the jquery.autocomplete.css to work.

I think I am not able to make the jquery run properly. Here is what I have done.

1. downloaded the jquery.autocomplete.js and jquery.autocomplete.css from the link ( bassistance.de/jquery-plugins/jquery-plugin-autocomplete/ )  on the above link and moved them to limesurvey/templates/basic folder

2. paste the code below to startpage.pstpl of the basic template ( the one I am gonna use in the survey)

<script type="text/javascript" src="{TEMPLATEURL}jquery.
autocomplete.js"></script>
<link rel="stylesheet" type="text/css" href="{TEMPLATEURL}jquery.autocomplete.css" />

3. Create a text input question and put the Method 1 code as needed in the question sourcecode.

I think I am not able to get the jquery to run and return the values when i keystroke to get a list of states.

I even downloaded jquery-1.4.2.min.js to limesurvey/templates/basic folder.

Is there any change that i need to make in the files of jquery.autocomplete.js and jquery.autocomplete.css or in
jquery-1.4.2.min.js to make it work in my server coz i just picked them up from bassistance.de/jquery-plugins/jquery-plugin-autocomplete/ as suggested from the Workaround section docs.limesurvey.org/tiki-index.php?page=...tions+for+LimeSurvey and I have put the files in the templates directory and not many any changes within the files.

Any help would be highly helpful