am trying to use jquery autocomplete plugin, I want it to suggest ItemCodes as user types...
The problem is its not showing autocomplete box/frame/.... Just to make sure webmethod returns data on every keyup event, I assigned data to a div element, and it works as it should. <script language="javascript" type="text/javascript"> $(document).ready(function() { var strItmCodes = "SELECT"; $("#txtItmCode").autocomplete(strItmCodes); $("#txtItmCode").keyup(function() { var search; search = $("#txtItmCode").val(); if (search.length > 0) { $.ajax({ type: "POST", url: "Journal.aspx/loadData", contentType: "application/json; charset=utf-8", data: "{'Like':'" + $('#txtItmCode').val() + "'}", dataType: "json", success: function(retval) { strItmCodes = retval.d.split("|"); $("#txtItmCode").autocomplete(strItmCodes); $("#suggest").html(retval.d); //elemet 'suggest' is a div } }); } }); }); </script>