title: How to calculate data by using jquery?
body: <p>I am writing an application. Here is some source code:</p>
  
  <pre><code>    &lt;div class="grid_3 alpha omega selected cheapest"&gt;
          &lt;div class="cheapest-body"&gt;
  
              &lt;p class="latest-type"&gt;Red Hotel&lt;br /&gt;from &lt;span class="latest-offer-price"&gt;$96&lt;/span&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  
  
      &lt;div class="grid_3 alpha omega selected cheapest"&gt;
          &lt;div class="cheapest-body"&gt;
  
              &lt;p class="latest-type"&gt;Orange apartment&lt;br /&gt;from &lt;span class="latest-offer-price"&gt;$64&lt;/span&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  
  
  
      &lt;div class="grid_3 alpha omega selected cheapest"&gt;
          &lt;div class="cheapest-body"&gt;
  
              &lt;p class="latest-type"&gt;Silver apartment&lt;br /&gt;from &lt;span class="latest-offer-price"&gt;$71&lt;/span&gt;&lt;/p&gt;
  
          &lt;/div&gt;
      &lt;/div&gt;
  </code></pre>
  
  <p>I want that to write a jquery code which will change each prices(multiple 3 time) that means $71 will show $213, $64 will show $192 and $96 will show $288 when I inject the code from developer console.</p>
  
  <p>I am trying to write this code as like:</p>
  
  <p><code>temp = $("span.latest-offer-price").text().split('$');</code>
  But I failed. Please help me about this issue.</p>