On the parent page, obtain the method _ javascript technique for zTree selected nodes.

Source: Internet
Author: User
This article mainly introduces how to obtain zTree selected nodes on the parent page. the instance analyzes the zTree operation skills for nodes, which is of great practical value, for more information about how to obtain zTree selected nodes on the parent page, see the examples in this article. Share it with you for your reference. The details are as follows:

Put the zTree in an iframe:

ZTreeObj = $ ("# treeDemo"). zTree (setting, zNodes );

If you are on the current page

Var nodes = zTreeObj. getCheckedNodes ();

You can.

Then, click the button on the parent page to obtain the node selected in zTree?

Assume that the id and name of iframe are aa (both id and name are set, and there is a compatibility problem)

Window. frames ['A']. window. zTreeObj. getCheckedNodes ();

You can.

I hope this article will help you design javascript programs.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.