title: Remove all commas from a string in Jquery
body: <p>I have many classes and want to remove the commas in them if any commas exist there.</p>
  
  <p>I wrote the below code but the code does not work correctly. The second class value is replaced with the first value.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>   
  var removebox = $(".remove"),
  removeboxHtml = removebox.html();
  removebox.html(removeboxHtml.replace(/,/g , ''));</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;html&gt;
    &lt;head&gt;
      &lt;script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.12.4.min.js"&gt;&lt;/script&gt;
    &lt;/head&gt;
    &lt;body&gt;
      &lt;span class="remove"&gt;,17500000&lt;/span&gt;
      &lt;span class="remove"&gt;,2479000&lt;/span&gt;
    &lt;/body&gt;
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>