title: Jquery - How to check if classname exists
body: <p>i want to check the style Tag if a classname exist or not.</p>
  
  <pre><code>if ($("head &gt; style:eq(2)").hasClass('className')) 
  {
    alert('yes');
  }
  </code></pre>