jQuery Autocomplete using extraParams to pass additional GET variables

后端 未结 13 725
独厮守ぢ
独厮守ぢ 2021-01-31 17:23

I am referring specifically to the jQuery Autocomplete v1.1 plugin by Jörn Zaefferer [source: http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/] as there seems to

13条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-31 17:51

    Try this:

    $('.ajax-auto input').setOptions({
      extraParams: {
        search_type: function(){
          return $(this).attr('name');
        }
      }
    })
    

    See also here

提交回复
热议问题