Finding all select inputs with in a loop using jQuery
<p>I have a loop that creates a datastring for an ajax call. Here is the code:</p>

<pre><code>    $(':input','#texes-test-entry-0').not(':button, :submit, :reset, :hidden').each(function(){
        varStr = $(this).attr("id").split('-');
        dataString = dataString + '&amp;' + varStr[1] + '=' + $(this).val();
    });
</code></pre>

<p>For all of the text inputs $(this).val()     gets me the value that I need, but for the select inputs, I don't need the text value but the selected option value.</p>

<p>How do I catch the the select inputs and treat them differently?</p>

<p>Thanks</p>
