finding a value after a selector
<p>I have the following html snippet</p>

<pre><code>&lt;ul class="product"&gt;
 &lt;li&gt;&lt;span&gt;Available:&lt;/span&gt;123&lt;/li&gt;
 &lt;li&gt;&lt;span&gt;Code:&lt;/span&gt;12345&lt;/li&gt;
&lt;/ul&gt;
</code></pre>

<p>What I'm looking to do, is to get the value of of the Available, i.e <code>123</code></p>

<p>I have:</p>

<pre><code>var a = $(".product li:contains('Available')").text();
</code></pre>

<p>But this stores <code>Available:123</code>. I only need the numeric value.</p>

<p>Any ideas?</p>

<p>Thanks</p>
