$(document).ready(function () { SearchText(); }); function SearchText() { $(".csSearch").autocomplete({ source: function (request, response) { $.ajax({ type: "POST", contentType: "application/json; charset=utf-8", url: "WebService.asmx/GetCountries", data: "{'prefixText':'" + $('.csSearch')[0].value + "','Flag':'" + $('.cslbl')[0].innerHTML + "','val':'" + $('.csdrpsrc')[0].value + "'}", dataType: "json", success: function (data) { response(data.d); }, error: function (result) { alert("Error....." + $('.csSearch')[0].value); } }); } }); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)