How to open the 3rd level menu on click with jquery?

In General I don't really think like js, and there is a problem: there is a dropdown menu where 2 and 3-rd level falls with a click. I have only 2nd level(because I put such an event), I do not understand how to do the same and on the 3rd level, and it falls together with the second, hang the other class is not an option, there must be a simple solution, please suggest this solution

My achievements: https://jsfiddle.net/49du0d1x/
June 10th 19 at 16:02
2 answers
June 10th 19 at 16:04
Solution
$('ul:not(.menu) li').click(function(e){
$(this).children('ul').toggle();
e.the stoppropagation();
});

But there is something much peramoena. Can somehow and in short it's all done and classes there nafig not needed at all. You can safely do kinship ties.
And if you stretch a little brains - you can do js to remove (inputs: radio/checkbox), but that's for the fans:)
Hah, exactly on the scaler can be implemented, I wonder) For kinship thanks, haven't come to this, but here's the problem: you need to close on click) - parker_Colli commented on June 10th 19 at 16:07
Some crap with Fallom it, whether my hands are twisted...
in short here it is:
$('ul:not(.menu) li').click(function(e){
$(this).children('ul').toggle();
e.the stoppropagation();
});
- Leda15 commented on June 10th 19 at 16:10
Fucking thank you. I how many searched, already the head swelled up) was close.. - parker_Colli commented on June 10th 19 at 16:13
Classes seemed to be poubirat besides .menu - Leda15 commented on June 10th 19 at 16:16
June 10th 19 at 16:06

Find more questions by tags jQueryJavaScript