我正在使用 jquery 来调用 JSON 请求,它们是从一堆自动完成字段中触发的。我使用通配符选择器,现在需要找出触发事件的 ac 字段。
...
$( "[id*='_lookupCmb']" ).autocomplete({
source: function( request, response ) {
$.ajax({
...
...
select: function( event, ui ) {
//here I want to get the name of the id calling the request...
感谢您提供更明智的解决方案中的任何快速修复或指导。
ATB
//汤姆乔德