title: Calculate Tax from price displayed in HTML table
body: <p>I am trying to display the Price Including tax on a product page. The price is displayed in [OurPrice], so I would need to pull the displayed price (eg £0.95),times it by 1.2 and display the price in Pounds. Here is the code that i am trying to use, however, it doesnt display the calculated price. I would like to show it with the £ symbol in front of the number.</p>
  
  <pre><code>    &lt;table cellspacing="1" cellpadding="0" border="0" &gt;
    &lt;tbody&gt;&lt;tr&gt;
      &lt;td class="retail-price" valign="top" nowrap=""&gt;[RetailPriceTitle]&lt;/td&gt;
      &lt;td width="100%"&gt;[RetailPrice]&lt;/td&gt;
    &lt;/tr&gt;&lt;tr&gt;
      &lt;td class="our-price" valign="top" nowrap=""&gt;Our Price:&lt;/td&gt;
      &lt;td width="100%"&gt;&lt;span id="op"&gt;[OurPrice]&lt;/span&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td class="incvat" valign="top" nowrap=""&gt;Inc Vat&lt;/td&gt;
      &lt;td class="incvat"&gt;
  
  &lt;script type="text/jscript"&gt;
  var ours = document.getElementById("op").value;
    document.write (£(ours *1.2))
  
      &lt;/script&gt;
  &lt;/td&gt;
    &lt;/tr&gt;
  
    &lt;/tbody&gt;
  &lt;/table&gt;
  </code></pre>