jquery target multiple title attributes
<p>I have the below code which works fine.</p>

<pre><code>    &lt;div id="testdiv"&gt;&lt;/div&gt;
    &lt;table&gt;
        &lt;tr&gt;
            &lt;td class="test" title="two"&gt;2&lt;/td&gt;
            &lt;td class="test" title="one"&gt;1&lt;/td&gt;
            &lt;td class="test" title="three"&gt;3&lt;/td&gt;
        &lt;/tr&gt;
    &lt;/table&gt;

    &lt;script&gt;
        if(jQuery("td[title='three']").length == 0) {
          jQuery('#testdiv').append('&lt;p&gt;no td&lt;/p&gt;')
        }
        else
        {
          jQuery('#testdiv').append('&lt;p&gt;yes td&lt;/p&gt;')
        }
    &lt;/script&gt;
</code></pre>

<p>However I want to say if either title one or three are present. So I tried editing the first line of my script to look like this.</p>

<pre><code>if(jQuery("td[title='three']").length == 0 || jQuery("td[title='one']").length == 0) {
</code></pre>

<p>But for some reason it seems as though both three and one need to be there for my statement to be true? </p>

<p>But if I replace the || with the &amp;&amp; it works how I want it to?  Why is it that the &amp;&amp; is working like an || here or am I missing something here?</p>

<p><a href="http://jsfiddle.net/aaronk85/bRN3y/" rel="nofollow">See fiddle</a> for example</p>
