I am new to ASP.net & Jquery.I am trying to implement autocomplete in my application using Jquery.I have downloaded Jquery plugin from this site.I am referring to this method.Please refer my code block-
<script type = "text/javascript">
$(function () {
var availableTags = [<%= Result %>];
$("#tags").autocomplete({
source: availableTags
});
Part of my controller code is ==>
public String Result;
Result = SourceSerializer.Serialize(ResultList);
ResultList is list of tags. I have also tried using hidden input as-
<input type = "hidden" id = "myid" name = "Name" />
Then in Jquery-
<script type = "text/javascript">
$(function () {
var availableTags = document.getElementById('myid).value;
$("#tags").autocomplete({
source: availableTags
});
But both methods are not working for me. If there is any other way please tell me.Also if you know better place to learn Jquery and ASP.net please redirect me to it.