title: Selecting element by text and attribute
body: <p>Simple question: why does this not work?</p>
  
  <pre><code>if ($('a:contains("some text"):first').attr("class") == "someclass") { 
      this.css('background-color', 'red');  
  }
  </code></pre>