title: Remove all span elements by classname?
body: <p>I have a classname called <code>notag</code>. When i click a button, it triggers my onclick event to call my function. Within the function i want it to remove / delete all span elements that has that classname <code>notag</code>.</p>
  
  <p>My attempts are below but no luck! Please help thanks.</p>
  
  <pre><code>onclick="replaceQueuePlaylist()"
  
  function replaceQueuePlaylist()
  {
      $("span").attr('notag').remove(); //dont work
      $('.notag').remove(); //also dont work
  }
  </code></pre>