I'm using dynatree with selectMode = 3, when user clicks into a node that has a parent, I need to apply a class to the parent. Any idea how to do it?
This is my code:
function CheckUnCheckParents(flag, node) {
var pnode = node.getParent();
if (pnode != null) {
if (hasSelectedNodes(pnode)) {
**add class 'dynatree-selected' to the parent**
}
}
return false;
}