tags:

views:

66

answers:

1

Hi all,

I need to be able to find a parent of a select node in a tree, however, whenever i use ParentNode it always comes up as 'undefined' (and i am not selecting the root). Anybody know a good way to find the parent of a node?

Thanks

+6  A: 

Maybe you should try parentNode, not ParentNode. JS is case-sensitive.

Robusto