Im using the following:
$(function() {
$(".StaffSubjectClassNav ul").hide();
$('.StaffSubjectClassNav h3').click(function(){
$(this).toggleClass('clicked');
$(this).next('ul').slideToggle('100');
});
});
On the following HTML:
<h3><a href="link">Link</a></h3>
<ul>
<li>Link1</li>
<li>Link2</li>
<li>Link3</li>
</ul>
It works perfectly, hides the <UL> and shows it when I click on the <H3>.
However <a> is also a link, how can I set the script so that if they click the <a> inside the <H3> it doesn't slideToggle?