• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to get the parent div?

 
Sharon whipple
Ranch Hand
Posts: 294
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ranchers,
I am working on JS TreeView control.
I am trying to get the parent div id of the current node selected:



How can I get wrapping div object or Div id (tree-1) from within promptDivId function?

promptDivId :


Thank you.


Tree code:


 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look into parentNode

Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic