From a front-end developer perspective, I would google  &quot;navigation tree jquery&quot;, download some library that does this for me, and be done with it. If all children of a checkbox need to also be selected, that&#x27;s like a single like of jQuery. Worst case scenario, something custom is written, and yeah it&#x27;s not the best way and yeah it takes 100 milliseconds instead of 4, but who cares?