Get a numeric value from specific string using javascipt/jquery
<p>I have a grid and I am getting selected row's html by its id using JavaScript.</p>

<pre><code>var parentRow1 = document.getElementById('__' + parentrowid).innerHTML; 
</code></pre>

<p>this will return me the following html:</p>

<pre><code>&lt;td class="rgExpandCol"&gt;
&lt;img title="Expand" onclick="$find(&amp;quot;&amp;quot;)._toggleExpand(this, event); return false;" 
src=" style="border-width:0px;"&gt;&lt;/td&gt;&lt;td&gt;TEST&lt;/td&gt;&lt;td&gt;my details&lt;/td&gt;&lt;td&gt;1&lt;/td&gt;&lt;td&gt;01/06/2011&lt;/td&gt;
&lt;td&gt;198307&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;
&lt;span id="lblDCount"&gt;2&lt;/span&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;span id="lblUCount"&gt;1&lt;/span&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;input name="$btn" id="btn"&gt;
&lt;/td&gt;
</code></pre>

<p>Is there a way to get this portion(the number count will not be static), and get the number value then substract it by one:</p>

<pre><code>&lt;span id="lblUCount"&gt;1&lt;/span&gt;
</code></pre>

<p>so final result will be <code>&lt;span id="lblUCount"&gt;0&lt;/span&gt;</code> it it is 2 then 1 and so on</p>
