Use the zTree check box tree to submit data in form POST mode in non-asynchronous communication mode.

Source: Internet
Author: User
Recently, I used zTree as a program for selecting elements in a tree. Because there are some other elements in the form that are inconvenient to use Asynchronous Communication, and zTree itself does not generate checkbox, I can only do it myself, I checked the official guide and wrote it myself. The idea is to check whether the tree is selected when I click it. If yes

Recently, I used zTree as a program for selecting elements in a tree. Because there are some other elements in the form that are inconvenient to use Asynchronous Communication, and zTree itself does not generate checkbox, I can only do it myself, I checked the official guide and wrote it myself. The idea is to check whether the tree is selected when I click it. If yes

Recently, I used zTree as a program for selecting elements in a tree. Because there are some other elements in the form that are inconvenient to use Asynchronous Communication, and zTree itself does not generate checkbox, I can only do it myself, I checked the official guide and wrote it myself. The idea is to check whether the tree is selected when I click it. If so, append a hidden form to a p object. If the hidden form is not selected, traverse the p object and remove the previously appended hidden form. The Code is as follows:

The HTML code is as follows:

The effect is as follows:

Original article address: Use the zTree checkbox tree for non-asynchronous communication. Use form POST to submit data. Thank you for sharing it.

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.