I am using the following function to create a simple accordion. The problem is that the final tier that opens contains links. These links inherit the click function from their parents and therefore don’t function correctly as links. Any ideas on how to avoid this? Ta
jQuery('.loc_level_1').click(function(){
jQuery(this).children('.level_2').slideToggle('200');
return false; // this prevents event bubbling
});
I don’t understand – it seems you wrote the solution to your problem already 🙂
However, it would be more elegant to just do: