Click here to Skip to main content
15,889,879 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
You can view my complete code here fiddle
JavaScript
$(".jx_form_Annuairecommunal:has(.level0 .level3)").click(function () {
        $(this).nextUntil('.jx_form_Annuairecommunal:has(.level0 .level3)').find('.level0 .level4').slideToggle(300);
    	$(this).nextUntil('.jx_form_Annuairecommunal:has(.level0 .level4)').find('#left1, #left2, #left3, #right1, #right2,#right3').slideToggle(300);
        return false;
    });

My problem is that whenever I clicked on a .level0 .level3 or a .level0 .level4 or a .level0 .level5 header I am not able to show the name of only the people belonging to this level. If ever I have .level0 .level3 with .level0 .level4 below it the name of the person should stop as it reaches this .level0 .level4 or else it should stop whenever it reaches another .level0 .level3

Hope that someone can help me out with this one and thx in advance
Posted
Updated 24-Nov-13 10:34am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900