*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 15376
    
    6
Look into parentNode

Eric
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to get the parent div?
 
Similar Threads
Problems using custom tag with javascript
Need Help with Jquery Selector logic
How to eliminate the diffrence between firefox and ie about this problem
xsl: anchor problem
jQuery not working on page