Jquery permission control menu

Source: Internet
Author: User


Effect:

1. If the parent node is selected, all the following child nodes are selected.

2. If the parent node is not selected, all the following child nodes are not selected

3. If one child node is selected, the parent node is selected.

4. If all child nodes are not selected, the Father's Day node is not selected.


<% @ Page language = "java" import = "java. util. * "pageEncoding =" UTF-8 "%> <% String path = request. getContextPath (); String basePath = request. getScheme () + ": //" + request. getServerName () + ":" + request. getServerPort () + path + "/"; %> <! Doctype html public "-// W3C // dtd html 4.01 Transitional // EN"> 

Note: In this example, the prop () method is used to obtain node attributes. It cannot be used with attr ., Jquery 1.6 has changed these two methods. attribute indicates that DOM state information is obtained from the document, and properties indicates the dynamic state information of elements, such as the use of check boxes.

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.