I have a grid and I am getting selected row's html by its id using JavaScript.
var parentRow1 = document.getElementById('__' + parentrowid).innerHTML;
this will return me the following html:
<td class="rgExpandCol">
<img title="Expand" onclick="$find("")._toggleExpand(this, event); return false;"
src=" style="border-width:0px;"></td><td>TEST</td><td>my details</td><td>1</td><td>01/06/2011</td>
<td>198307</td>
<td> </td>
<td>
<span id="lblDCount">2</span>
</td>
<td>
<span id="lblUCount">1</span>
</td>
<td>
<input name="$btn" id="btn">
</td>
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:
<span id="lblUCount">1</span>
so final result will be <span id="lblUCount">0</span> it it is 2 then 1 and so on