jQuery Autocomplete using extraParams to pass additional GET variables

后端 未结 13 729
独厮守ぢ
独厮守ぢ 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 18:04

    jQuery( "#jac" ).autocomplete({
        source: autocompleteURL,
        minLength: 2,
        search: function( event, ui ) { 
    
            // update source url by adding new GET params
            $(this).autocomplete( 'option', 'source', autocompleteURL + 'var1=aaa&var2=bbb' );
        }
    })
    

    Works for me with jquery.ui.autocomplete 1.8.17

提交回复
热议问题