title: remove all text in brackets javascript
body: <p>Any suggestion on how to remove text content in brackets?</p>
  
  <p>Example:</p>
  
  <pre><code>&lt;span id="new"&gt;Welcome [something.....] home&lt;/span&gt;
  &lt;span id="new"&gt;The Jeep is (asdjfl... ect) nice&lt;/span&gt;
  
  var myString = document.getElementsByClassName('new')[0];
  myString.replace(/ *\[[^\]]*]/, '');
  </code></pre>
  
  <p>Goal: </p>
  
  <ul>
  <li>Welcome home</li>
  <li>The Jeep is nice</li>
  </ul>