Jquery – select2 multi group select. Select parent, disable child nodes. Unselect parent, enable child nodes
I have implemented 2 custom functions with select2: Select parent node, add parent node to selected and disable child nodes. Unselect parent node, remove from selected and enable child nodes. This is working, except when adding and removing parent node…