I am using balupton ajaxy plugin.
I am trying to add a class on an element with on("click") function but due to the ajaxy plugin that handles the click function on the specific element , it doesn't work.
I have this list:
<ul class="menu">
<li><a href="company.html" class="ajaxy ajaxy-page"> company</a>
<ul>
<li><a href="aboutus.html" class="ajaxy ajaxy-page">aboutus</a></li>
<li><a href="contactus.html" class="ajaxy ajaxy-page">contactus</a></li>
</ul>
</li>
<li><a href="services.html" class="ajaxy ajaxy-page">services</a></li>
</ul>
I have tried this, and it works for the "li" but not for the "a" element.
$(".menu li").on("click", function(){
alert("aa");
});
Any help would be appreciated.