1

ユーザーが親を持つノードをクリックすると、親にクラスを適用する必要があります。それを行う方法はありますか?

これは私のコードです:

 function CheckUnCheckParents(flag, node) {                    
      var pnode = node.getParent();
      if (pnode != null) {
         if (hasSelectedNodes(pnode)) {
              **add class 'dynatree-selected' to the parent**
         }                
      }            
        return false;
 }
4

1 に答える 1