Ultra-lightweight jquery-based Three-Level Expansion LIST _ jquery

Source: Internet
Author: User
Today, I wrote a lightweight three-level expanded menu. If necessary, I can add one level. Generally, three levels of project are enough for the company. In the general management background of the company over the past few days, I used the left-side frame structure, and clicked the content on the left and right to expand the content. In the project, I often encountered Level 2 or level 3 on the left. I used dtree in the past, however, we found that dtree, style, and structure are not well controlled,
If it is dynamic data, it should also be written to the cs file and input characters, which is not conducive to maintenance and cannot be found for a long time. ,
So today I wrote a lightweight three-level expanded menu. If necessary, I can add one level. Generally, the company's three-level project is enough.

Introduction:
The p part does not need to define its own class and ID, as long as it is in the following structure, the data can be dynamic or static
You can control the style and modify it according to your own style.

The Code is as follows:
Css

The Code is as follows:




Js:

The Code is as follows:


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.