Ajax Autocomplete for Jquery : How To Send Dynamic Parameters

前端 未结 6 1353
感情败类
感情败类 2021-01-17 22:03

i am using Ajax Autocomplete for Jquery ( http://www.devbridge.com/projects/autocomplete/jquery/ ) in one of my application. The Search Form looks something lik

6条回答
  •  死守一世寂寞
    2021-01-17 22:54

    The setOptions method worked, though we need to call it on the selects change method. So change script to:

    
    

    and On document ready function add this :

    $("#top_search_select").change(function() {
      a.setOptions({params:{entity_type:$('#top_search_select').val()}});
    });
    

提交回复
热议问题