<div class="SubMenu"><ul><li><a href="#">One</a></li><li><a href="#">Two</a></li><li><a href="#">Three</a></li></ul></div>
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.
Issue here is i am not getting the element arrt dont know whats wrong, please help