How to find the parent of an ASP.NET TreeView node in JavaScript?
How to find the parent of an ASP.NET开发者_JAVA技巧 TreeView node in JavaScript?
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
精彩评论