title: Javascript update to HTML table cell (from thousands to millions)
body: <p>I need to create some Javascript on my web report which converts table values to thousands or millions (eg divides or multiplies by 1000).</p>
  
  <p>The trouble is that each value is 'clickable' (i.e. it is wrapped in an anchor tag).</p>
  
  <p>Is this possible?</p>
  
  <pre><code>&lt;table class="Table" &gt;
  &lt;thead&gt;&lt;tr&gt;
    &lt;th class="l Header" scope="col"&gt;£000s&lt;/th&gt;
    &lt;th class="l Header" scope="col"&gt;Col1&lt;/th&gt;
    &lt;th class="l Header" scope="col"&gt;Col2&lt;/th&gt;
  &lt;/tr&gt;&lt;/thead&gt;
  &lt;tbody&gt;
  &lt;tr&gt;
    &lt;td class="l Data"&gt;   My Data Row &lt;/td&gt;
    &lt;td class="l Data"&gt;   &lt;a class=nums href="javascript:MyFunc();"&gt;  11,372,397&lt;/a&gt;&lt;/td&gt;
    &lt;td class="l Data"&gt;   &lt;a class=nums href="javascript:MyFunc();"&gt;  11,344,327&lt;/a&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;/tbody&gt;
  </code></pre>
  
  <p><strong>edit</strong></p>
  
  <p>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...</p>