title: jquery text() compare to string
body: <p>How to compare strings  to jquery text()? I've tried this one but it will not work.</p>
  
  <pre><code>var str = 'hello';
  var string = $(this).find("text").trim();
  
  if(str == string)
  {          
     string.css("visibility", "visible");
  }
  </code></pre>
  
  <p>What's wrong with my code? Any idea please? thank you</p>