This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum 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
Register / Login


JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply 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: 15362
    
    6
Look into parentNode

Eric
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: How to get the parent div?
 
Similar Threads
How to eliminate the diffrence between firefox and ie about this problem
Need Help with Jquery Selector logic
jQuery not working on page
Problems using custom tag with javascript
xsl: anchor problem