title: jQuery Remove specific span based on id
body: <p>I want to be able to remove only spans which has an id that stars with the key word "junk_"</p>
  
  <p>for example if I have </p>
  
  <pre><code>&lt;span id="junk_8345"&gt;A&lt;/span&gt;
  &lt;span id="valid_2972"&gt;B&lt;/span&gt;
  &lt;span id="junk_9249"&gt;C&lt;/span&gt;
  </code></pre>
  
  <p>The output should look like</p>
  
  <pre><code>&lt;span id="valid_2972"&gt;B&lt;/span&gt;
  </code></pre>
  
  <p>I've tried to use</p>
  
  <pre><code>$("span:has(junk)").remove();
  </code></pre>
  
  <p>but it does not seem to work. I'm open to use regex expression with the replace function if I can accomplish the same goal. Any help would be greatly appreciated!</p>