title: Removing dollar signs from prices
body: <p>I'm building a string of amounts but need to remove the dollar signs. I have this jQuery code:</p>
  
  <pre><code>  buildList($('.productPriceID &gt; .productitemcell'), 'pricelist')
  </code></pre>
  
  <p>It's returning</p>
  
  <pre><code>pricelist=$15.00,$19.50,$29.50
  </code></pre>
  
  <p>I need to remove the dollar signs but can't seem to figure it out. Tried using .trim but I think that removes only white space.</p>
  
  <p>Sorry for the newbie question! Thanks in advance for any help!</p>
  
  <p>Here's the full code:</p>
  
  <pre><code>function buildList(items, name) {
  var values = [];
  items.each(function() {
  values.push(this.value || $(this).text());
  });
  return name + '=' + values.join(',');
  }
  
  var result = [
  buildList($('.productCodeID &gt; .productitemcell'), 'skulist'),
  buildList($('.productQuantityID &gt; .productitemcell &gt; input'), 'quantitylist'),
  buildList($('.productPriceID &gt; .productitemcell'), 'pricelist')
  ];
  
  var string = result.join('&amp;');
  </code></pre>
  
  <p>Here is the raw code before the javascript runs</p>
  
  <pre><code>&lt;span class="productPriceID"&gt;
  &lt;div class="productitemcell"&gt;$15.00&lt;/div&gt;
  &lt;div class="productitemcell"&gt;$19.50&lt;/div&gt;
  &lt;div class="productitemcell"&gt;$29.50&lt;/div&gt;
  &lt;/span&gt;
  </code></pre>