title: Selecting, Deleting jQuery based on wildcard
body: <p>What I would like is if there is NOT a word "link" in the href "www.1link.com" all the top classes 1-6 is changed to classdefault.</p>
  
  <p>Also a different code that does the same thing except of adding "defaultclass" it removes all the classes 1-6 empty.</p>
  
  <p>This is what I've tried so far and it hasn't worked</p>
  
  <p><a href="http://jsfiddle.net/yLxXn/2/" rel="nofollow">http://jsfiddle.net/yLxXn/2/</a></p>
  
  <pre><code>$(document).ready(function() { 
  
  if ($('a[href$="link"]')) {  
      // do something here  
  
  $("[class^=content]").attr("class", "classdefault");
  
  } 
  
  
  });  
  </code></pre>