title: passing a select list value to jquery autocomplete php file
body: <p>There is no error in the code but the problem is when I type in product text filed after I select a option from brands it should pass the brand id but instead of that it pass "%" this but I want to pass 1,2 or 3 no matter which brand I selected it pass "%" this to the php file. I want know is there a way to pass changed brand id value to the php file</p>
  
  <p>This is my code  </p>
  
  <pre><code>$().ready(function(){
      $("#product").autocomplete("ajax/php/product_search.php?brands=" + $('#brands').val() +"&amp;",
          {
              width: 260,
              matchContains: true,
              selectFirst: false,
              formatItem: function(data, i, n, value) {   
                  return  value.split("|")[0];
              } 
          }
      );           
  });
  </code></pre>
  
  <p>this is html select list for brands</p>
  
  <pre><code>&lt;select id="brands" name="brands"&gt;
      &lt;option value="%"&gt;-- Select --&lt;/option&gt;
      &lt;option value="1"&gt; JVC - PLAYER SET &lt;/option&gt;
      &lt;option value="2"&gt; CLARION - PLAYER SET &lt;/option&gt;
      &lt;option value="3"&gt; DLS &lt;/option&gt;
  &lt;/select&gt;
  </code></pre>