How to check if the element has multiple css class in jQuery
<p>I have some html like below. I have loop through the all the elements inside the div(accordionContents).Inside the loop i need to check a condition if the element h2 has applying two css class(acc_trigger and active) or not.How can i do it?</p>

<pre><code> &lt;div id="accordionContents"&gt;
     &lt;div class="accordioncontainer"&gt;         
                    &lt;h2 class="acc_trigger active"&gt;
                       &lt;a href="#"&gt; &lt;img class="openImage" src="Images/closed.png"&gt; 
                          &lt;div class="openHeader"&gt;Division : &lt;b&gt;Quality Assurance&lt;/b&gt;(4 items)&lt;/div&gt;&lt;/a&gt;&lt;/h2&gt;
                    &lt;div class="acc_container" style="display: block;"&gt;
                        &lt;div class="dataRowTeam"&gt;
                            &lt;div class="riskStartContent"&gt;
                                &lt;div class="riskGridHeader"&gt;
                                    weekStart&lt;/div&gt;
                            &lt;/div&gt;
                            &lt;div class="riskEndContent"&gt;
                                &lt;div class="riskGridHeader"&gt;
                                    90%&lt;/div&gt;
                            &lt;/div&gt;
                        &lt;/div&gt;
                    &lt;/div&gt;

                &lt;/div&gt;
                 &lt;div class="accordioncontainer"&gt;


                    &lt;h2 class="acc_trigger"&gt;
                       &lt;a href="#"&gt; &lt;img class="openImage" src="Images/closed.png"&gt; 
                        &lt;div class="openHeader"&gt;Division : &lt;b&gt;Quality Assurance&lt;/b&gt;(4 items)&lt;/div&gt;&lt;/a&gt;&lt;/h2&gt;
                    &lt;div class="acc_container" style="display: none;"&gt;
                        &lt;div class="dataRowTeam"&gt;
                            &lt;div class="riskStartContent"&gt;
                                &lt;div class="riskGridHeader"&gt;
                                    weekStart&lt;/div&gt;
                            &lt;/div&gt;
                            &lt;div class="riskEndContent"&gt;
                                &lt;div class="riskGridHeader"&gt;
                                    90%&lt;/div&gt;
                            &lt;/div&gt;
                        &lt;/div&gt;
                    &lt;/div&gt;

                &lt;/div&gt;
&lt;/div&gt;
</code></pre>
