title: JQuery .hasClass to change css on child element
body: <p>I want to verify the class of a div by using its ID and checking if it has a specific class. Should the attribute prove to be true, I then want to set the css on a child element inside the DIV being validated. How do I do that?</p>
  
  <pre><code>$('#kwick_4').hasClass('active').css('background-position', '0px');
  </code></pre>
  
  <p>The css to be set, should be set on the image child element of the div: </p>
  
  <pre><code>#kwick4 img
  </code></pre>
  
  <p>How do I do that?</p>
  
  <p>Thank you</p>