How to pass the value of an option field as well as an input box via post in jquery/PHP?
<p>I have a search bar like</p>

<pre><code>&lt;div id="searchbar"&gt;
&lt;form&gt;
&lt;select name="Cars"&gt;
&lt;option value="big"&gt;Big Cars&lt;/option&gt;
&lt;option value="small"&gt;Small Cars&lt;/option&gt;
&lt;/select&gt;
&lt;input type ='text' name="searchkey" id ="search" onblur ='setTimeout('removeSearchSuggestions()', 20);' onkeyup ='getSearchSuggestions(this.value);'/&gt;
&amp;nbsp;
&lt;br/&gt;
&lt;div id = 'searchsuggest'&gt;&lt;/div&gt;
&lt;input type ='submit' value = 'Search' /&gt;
&lt;/form&gt;
&lt;/div&gt;
</code></pre>

<p>and i have the following jquery code snippet</p>

<pre><code>function getSearchSuggestions(value){
   if (value !=""){
   $.post("searchSuggest.php", {searchPart:value}, function(data) {
     $("#searchsuggest").html(data);
     doSearchCSS();
   });
   } else {
    removeSearchSuggestions();
    }

  }
</code></pre>

<p>So searchSuggest has access to "searchPart" i.e. the value that is typed into the input box. I am modifying something I got to work for a case without options. How do I modify the jquery function to access the selected option in searchSuggest.php? </p>

<p>Thanks!</p>
