Home > front end >  About ztree, checkbox, father and son get the value
About ztree, checkbox, father and son get the value

Time:10-24


How can I when I check the 2 let father-child nodes (1111 and 22) have become gray, and click save to get 2 node values (that is, only for I checked value) with the mouse, use the click event functions if I check the error, so also can obtain the error value,

CodePudding user response:

Only choose the parent state, there is no child half select state, you this demand or comparing click event, check the error check again not good?

CodePudding user response:

Hello World, 1/f, reference response:
only choose the parent state, no child half select state, you this demand or comparing click event, check the error check again not good?

That if I want to children half choose only changed the source code by yourself??

CodePudding user response:

refer to the second floor Hannibal22 response:
Quote: Hello World, 1/f, reference response:

Only choose the parent state, there is no child half select state, you this demand or comparing click event, check the error check again not good?

That if I want to children half choose only changed the source code by yourself??


Yes, half means that only part of the selected, and the parent node selected child nodes should not exist half selected state