js的方法进不去,代码如下

inputAutoDealerInfoComp("#batchId","couponBatch/getBatchList.htm");
//网点下拉提示
function inputAutoDealerInfoComp(item,url){
// alert("dfasdf");//这个有反应
$(item).autocomplete({
serviceUrl: url,
autoSelectFirst:true,
showNoSuggestionNotice:true,
noSuggestionNotice: ' ',
ajaxSettings:{
dataType: "json",
type: "post",
},
paramName: 'batchId',
noCache:true,
transformResult: function(response) {
return {
suggestions: $.map(response, function(dataItem) {
return { value: dataItem.orgName, data: dataItem };
})
};
},
onSelect: function (suggestion) {

                },
                onSearchComplete: function (query, suggestions) {
                   var isResult = false;
            //       alert("dfasdf");//这个没有反应
                   $.each(suggestions,function(n,value) {
                        if (query == value.value){
                            isResult = true;
                            return false;
                        }
                    });

                }   

            });
    }

我觉得问题在这:(引号部分)
_ onSearchComplete: function_ (query, suggestions) {///这里只是声明了一个函数,你没有使用这个函数,函数里面的代码自然不能运行
var isResult = false;
// alert("dfasdf");//这个没有反应

                    你的代码没有显示完,目前的问题是这样的