How to get the class of a div on click
<p>I have following div structure</p>

<pre><code>&lt;div class="mainDiv"&gt;
    &lt;div class="subDiv01"&gt;
    &lt;/div&gt;
    &lt;div class="subDiv02"&gt;
    &lt;/div&gt;
    &lt;div class="subDiv03"&gt;
    &lt;/div&gt;
    &lt;div class="subDiv04"&gt;
    &lt;/div&gt;
&lt;/div&gt;
</code></pre>

<p>how could i know the subDiv's are clicked?
please help.</p>
