【发布时间】:2010-08-19 04:33:13
【问题描述】:
我正在调用搜索方法并传递一个值
$('myelem').autocomplete('search','test');
然后我有一个搜索事件的事件处理程序
search: function (event,ui){
//I need to access the value 'test' passed from the search method in the search event
}
到目前为止,我不知道如何访问搜索事件处理程序中的值。该值在request.term 属性的source: function (request, response) 事件处理程序中可用。
【问题讨论】:
标签: jquery jquery-ui autocomplete