title: How do I add css property for particular Div if class is found(JQuery)
body: <pre><code>&lt;div class="b" &gt;
     &lt;h1&gt;Hello&lt;/h1&gt;
     &lt;div class="a"&gt; 
       &lt;p class="ABC"&gt;A........Z&lt;/p&gt; //this could be present in some pages
     &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>This is a piece of code in which I want to add css properties to div with class "b" if <code>&lt;p&gt;</code> contains <code>class="ABC"</code>.
  How to do it?</p>