I need to create some javascript on my web report which converts table values to thousands or millions (eg divides or multiplies by 1000).
The trouble is that each value is 'clickable' (ie it is wrapped in an anchor tag).
Is this possible?
<table class="Table" >
<thead><tr>
<th class="l Header" scope="col">£000s</th>
<th class="l Header" scope="col">Col1</th>
<th class="l Header" scope="col">Col2</th>
</tr></thead>
<tbody>
<tr>
<td class="l Data"> My Data Row </td>
<td class="l Data"> <a class=nums href="javascript:MyFunc();"> 11,372,397</a></td>
<td class="l Data"> <a class=nums href="javascript:MyFunc();"> 11,344,327</a></td>
</tr>
</tbody>
edit
I am using IE6. basically the aim is to have a 'thousands' and a 'millions' button so that the values of the table can become 11,372k or 11.4m etc...