Select element with one attribute OR another attribute
<p>I want to be able to select all elements that have one of a list of attributes.
For example, I want to select all elements that have either a <code>mandatory</code> attribute, or <code>validate='true'</code> or both.</p>

<p>I tried this:</p>

<pre><code>$('[mandatory="true",validate]').each(...
</code></pre>

<p>But I get an error.</p>

<p>I can't find any alternatives online. Any suggestions?</p>

<p>Thanks</p>
