开发者

How to find the parent of an ASP.NET TreeView node in JavaScript?

开发者 https://www.devze.com 2022-12-24 16:39 出处:网络
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&

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
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号