This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes How to get the parent div? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "How to get the parent div?" Watch "How to get the parent div?" New topic
Author

How to get the parent div?

Sharon whipple
Ranch Hand

Joined: Jul 31, 2003
Posts: 294
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

Joined: Nov 08, 2001
Posts: 15385
    
    6
Look into parentNode

Eric
 
Have you checked out Aspose?
 
subject: How to get the parent div?
 
It's not a secret anymore!