How can I use jQuery to determine if an object is a select?
<p>I have been using this to determine if an object is a "text" or not so I can get the .val or the checked state:</p>

<pre><code>var val = object.is(":text") ? object.val() : object.is(":checked")
</code></pre>

<p>This works BUT now the object might also be:</p>

<ol>
<li>From a select</li>
<li>From an input field</li>
<li>From a checkbox</li>
</ol>

<p>Is there another way I could code this so it would also work for a select?</p>
