title: Detect character in div and remove it Javascript or jQuery
body: <p>I have this div:</p>
  
  <pre><code>&lt;h1&gt;$340&lt;/h1&gt;
  </code></pre>
  
  <p>I need to detect if inside of this div there is a dollar symbol,<br/>
  If so - remove it</p>
  
  <hr>
  
  <p>I'll explain again:
  I have got this code so far so I manage to detect if the symbol is in the div, but I can't figure how to remove it and update the DOM?</p>
  
  <pre><code>var sign = $('h1').text();
  
      if (sign.indexOf("$") &gt;= 0) {
       //remove the sign
      }
  </code></pre>