My click on DIV is not getting triggered
<pre><code>&lt;div class="SubMenu"&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="#"&gt;One&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="#"&gt;Two&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="#"&gt;Three&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;
</code></pre>

<p>Now I wanted to fire a function when i click on div which has class "SubMenu" but the problem is i wanted to see if i have clicked there, i do not want to do like $(.'SubMenu').hide() instead i wanted to check that where i have clicked has a class SubMenu or not.</p>

<p>Issue here is i am not getting the element arrt dont know whats wrong, please help</p>
