How to find the parent of an ASP.NET TreeView node in JavaScript?
+1
A:
You need to get the element's ClientID, then call getElementById
and check the parentNode
, like this: (In a <script>
block on the page)
document.getElementById('<%=myTreeView.ClientID%>').parentNode
SLaks
2010-03-21 12:14:25
What's a `<scipr>` block, is that HTML5? :)
Nick Craver
2010-03-21 12:24:03