autocomplete - retrieve input text not in term variable

autocomplete - retrieve input text not in term variable

Hi,

is possible to retrieve autocomplete textbox value not using the term variable but using another one?

I'm trying like this but is not working....

Thanks,
Riccardo

  1. <div class="ui-widget">
  2.         <input type="text" id="csp" name="csp" />
  3.   <p></p>
  4. </div>


  1. $(function() {
  2.                 $("#csp").autocomplete({
  3.                         source: "index.php?r=site/autoCompleteCsp"
  4.                                              +"&from="+$("#from").val()
  5.                                              +"&to="+$("#to").val()
  6.                                              +"&period="+$("#period").val()
  7.                                              +"&time_detail="+$("#time_detail").val()
  8.                                              +"&information_detail="+$("#information_detail").val()
  9.                                              +"&direction="+$("#direction").val()
  10.                                              +"&result="+$("#result").val()
  11.                                              +"&csp="+$("#csp").val()
  12.                                              +"&la="+$("#la").val()
  13.                                              +"&oadc="+$("#oadc").val()
  14.                         ,
  15.                         minLength: 1,
  16.                         });
  17.             });