title: Get order total value using jquery from table
body: <p>I am trying to get order total value and than save it to cookie. But the code that I trying to write is not fetching the price. </p>
  
  <p>This is the html;</p>
  
  <pre><code>&lt;tr class="last"&gt;
  &lt;td style="" class="a-right" colspan="4"&gt;
      &lt;strong&gt;Total&lt;/strong&gt;
  &lt;/td&gt;
  &lt;td style="" class="a-right last"&gt;
      &lt;strong&gt;&lt;span class="price"&gt;USD 578&amp;nbsp;,-&lt;/span&gt;&lt;/strong&gt;
  &lt;/td&gt;
   &lt;/tr&gt;
  </code></pre>
  
  <p>This is the jquery code I have;</p>
  
  <pre><code>jQuery(document).ready(function($) {
  var info1 = $('td.a-right').text();
  var info2 = info1.replace ( /[^\d]/g, '' );
  alert(info2);
  })
  </code></pre>
  
  <p>Here is the url for the test code;
  <a href="http://jsfiddle.net/zrr2q/208/" rel="nofollow">http://jsfiddle.net/zrr2q/208/</a></p>
  
  <p>Appreciate any help. </p>
  
  <h2>Thanks,</h2>
  
  <p>Update : I need value 578 value (from USD 578&nbsp;,-)</p>