Create an excellent accordion folding Menu Using jQuery _ jquery

Source: Internet
Author: User
This article mainly introduces the effect of creating an excellent accordion folding menu for jQuery. We recommend it to you here. If you have any need, you can refer to the accordion folding menu created by jQuery, very good results! Here is the release version of the previous version, mainly for jquery code improvement

Demo diagram:

Main. js

$ (Function () {var tmp = null, $ title = $ ('. title '), $ con = $ ('. title> ul '); $ title. click (function () {$ (tmp ). children ('ul '). slideUp (). end (). children ('. arrow '). removeClass ('arrow-up'); $ (this ). children ('ul '). slideToggle (). end (). children ('. arrow '). addClass ('row-up'); tmp = this;}); $ con. click (function () {return false; // prevents event bubbles });});

Index.html

  Jquery js css html  
   
   
   

  • I. HTML5 basic tutorial
    • HTML5 basic tutorial 1
    • HTML5 basic tutorial 2
    • HTML5 basic tutorial 3
    • HTML5 basic tutorial 4
    • HTML5 basic tutorial 5
  • Ii. CSS3 basic tutorial
    • CSS3 basic tutorial 1
    • CSS3 basic tutorial 2
    • CSS3 basic tutorial 3
    • CSS3 basic tutorial 4
    • CSS3 basic tutorial 5
  • III. Basic Javascript tutorial
    • Basic Javascript tutorial 1
    • Basic Javascript tutorial 2
    • Basic Javascript tutorial 3
    • Basic Javascript tutorial 4
    • Basic Javascript tutorial 5
  • Iv. Basic NodeJs tutorial
    • NodeJs basic tutorial 1
    • NodeJs basic tutorial 2
    • NodeJs basic tutorial 3
    • NodeJs basic tutorial 4
    • NodeJs basic tutorial 5
  • 5. Basic IOS tutorials
    • Basic IOS tutorial 1
    • Basic IOS tutorial 2
    • Basic IOS tutorial 3
    • Basic IOS tutorial 4
    • Basic IOS tutorial 5

Related Article

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.