JQuery-based simple list navigation menu _ jquery-js tutorial

Source: Internet
Author: User
Recently, I started to learn about JQUERY. I feel that JQUERY has very powerful functions and the amount of code has been reduced a lot... the code is also very clear! The following is a simple navigation menu that I made. As a newbie, there is something wrong with it!

Now let's get started:

1. First define the CSS style sheet:

The Code is as follows:




2. Reference JQUERY framework, you can go to the official online download the latest JQUERY, as if the JQUERY1.5 version has been released, link address: http://jquery.com/

3. Define HTML tags:

The Code is as follows:






  • Computer Digital Products



    • Notebook


      • Notebook 1

      • Notebook 2

      • Notebook 3

      • Notebook 4

      • Notebook 5


    • Mobile hard drive


      • Mobile hard drive 1

      • Mobile hard drive 2

      • Mobile hard drive 3

      • Mobile hard drive 4

      • Mobile hard drive 5


    • Computer Software


      • Computer Software 1

      • Computer Software 2

      • Computer software 3

      • Computer software 4

      • Computer software 5


    • Digital Products


      • Digital Product 1

      • Digital Product 2

      • Digital Product 3

      • Digital Product 4

      • Digital product 5







4. Next we will define the most important JQUERY code:

The Code is as follows:


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.