How to select an object if it contains a number with jquery?
<p>I have a couple divs like so:</p>

<pre><code>&lt;div&gt;1&lt;/div&gt;
&lt;div&gt;2&lt;/div
</code></pre>

<p>all the way through to</p>

<pre><code>&lt;div&gt;11&lt;/div&gt;
&lt;div&gt;12&lt;/div&gt;
</code></pre>

<p>And so on.</p>

<p>What I'm wanting is a jquery select that picks one of these, like so:</p>

<pre><code>$('.ticketNumber:contains("1")').addClass('something');
</code></pre>

<p>The problem with this of course, is its going to select any of the divs that contain the number 1 and not just the one that only contains 1.</p>

<p>So how does one go about telling jquery to do an exact select rather than a wildcard type?</p>
