How can I capture the value of a dropdown menu and pass it to a jQuery function
<p>i have an autosuggest feature here that is alongside a dropdown menu. When a specific category is selected in the drop down menu only the thing that are in that category should be shown in the autosuggest.</p>

<pre><code>
function suggest(inputString)
    {
        if(inputString.length == 0){
            $('#suggestions').fadeOut();
        } else {
        $('#type').addClass('load');
            $.post("autosuggest.php", {queryString: ""+inputString+""}, function(data){
                if(data.length >0) {
                    $('#suggestions').fadeIn();
                    $('#suggestionsList').html(data);
                    $('#type').removeClass('load');
                }
            });
        }
    }
    function fill(thisValue) {
        $('#type').val(thisValue);
        setTimeout("$('#suggestions').fadeOut();", 600);
    }
</pre>

<p>Drop Down Menu</p>

<pre>    &lt;select name="category" id="category" style="width: ; background-color: #FFF; font-             weight: bold; font-size: 12px; width: 120px;"&gt;
    &lt;!-- onchange="setup(document.search1.category.value)"&gt; --&gt;
    &lt;option value="all" selected="selected"&gt;All&lt;/option&gt;
    &lt;option value="cleaning"&gt;Cleaning&lt;/option&gt;
    &lt;option value="cooling"&gt;Cooling&lt;/option&gt;
    &lt;option value="heating"&gt;Heating&lt;/option&gt;
    &lt;option value="kitchen"&gt;Kicthen&lt;/option&gt;
    &lt;option value="lighting"&gt;Lighting&lt;/option&gt;
    &lt;option value="washroom"&gt;Washroom&lt;/option&gt;
    &lt;/select&gt;
</code></pre>

<p></p>
