Currently I am customizing multiple selection drop-down list of Multiple Selection Plugin and these are the behaviors that I am going to apply on my customized selection :
- When parent is selected, all children will be selected.
- When all the children are selected, the parent would be selected too, otherwise if one of children is deselected, then the parent would be deselected too.
- When all the children are selected, there should be only parent's name that showed in the selected filed.
- The sub level should work as the 1st level as well.
(1), (2), and (4) I have already accomplished it. But for (3), I have not come up with any solution yet.
This is the sample json string of the multi selection :
var _str = '{"10":{"0":"0","1":"DISPONIBILITES","2":"t","style":"font-weight: bold;"},"16":{"0":"0","1":"TRESORERIE NETTE","2":"t","style":"font-weight: bold;"},...."}}}';
Here is the https://jsfiddle.net/skL589uu/7/ that I created.
It would be great if anyone here could give me some idea about that.