Writing an if/then statement in jQuery
<p>How do I write a selector so that it says</p>

<pre><code>var myDefault;
if $('th.default') {
   myDefault = $('th.default');
} else {
   myDefault = $('th:eq(2)'); // 3rd column
}
</code></pre>

<p>It probably uses something like:</p>

<pre><code>var myDefault = $('th.default') || $('th:eq(2)');
</code></pre>

<p>except the first selection is not returning falsey if there is no th with a class="default".</p>
