jquery collapse Menu Effect code

Source: Internet
Author: User

HTML code

<script language= "Web Effects" type= "Text/javascript" >
$ (document). Ready (function () {
Set level two menu to invisible
$ (". Faqlist"). CSS Tutorial ("Display", "none");
Click on events triggered by a level menu
$ (". Bartitlefaq"). Click (function () {
$ (". Faqlist"). CSS ("display", "none");//Set level two menu all to invisible
$ (this). Next (". Faqlist"). CSS ("Display", "block");//The current level two menu is set to visible
})
})
</script>

<body>
<div class= "Mainleftfaq" >
<div class= "category" >

</div>
<div id= "disp" >
</div>
<div class= "Bartitlefaq" >
<span class= "admintext11" > Service Management </span></div>
<div class= "Faqlist" >
<ul>
<li><a href= ' # ' > Awaiting submission </a></li>
<li><a href= ' # ' title= ' > Waiting for release </a></li>
<li><a href= ' # ' title= ' > Official project </a></li>
<li><a href= ' # ' title= ' > dot this new </a></li></ul>
</div>
<div class= "Bartitlefaq" >
<span class= "admintext11" > Update process </span></div>
<div class= "Faqlist" >
<ul>
<li><a href= ' # ' > Background search </a></li>
<li><a href= ' # ' title= ' > update process </a></li>
</div>
<div class= "Bartitlefaq" >
<span class= "admintext11" >faq management </span></div>
<div class= "Faqlist" >
<ul>
<li><a href= ' # ' > Awaiting submission </a></li>
<li><a href= ' # ' title= ' > Waiting for release </a></li>
<li><a href= ' # ' title= ' > Official project </a></li>
<li><a href= ' # ' title= ' > dot this new </a></li></ul>
</div>
<div class= "Bartitlefaq" >
<span class= "admintext11" > Download Management </span></div>
<div class= "Faqlist" >
<ul>
<li><a href= ' # ' > Awaiting submission </a></li>
<li><a href= ' # ' title= ' > Waiting for release </a></li>
<li><a href= ' # ' title= ' > Official project </a></li>
<li><a href= ' # ' title= ' > dot this new </a></li></ul>
</div>
<div class= "Bartitlefaq" >
<span class= "admintext11" > Back home </span></div>
</div>
</body>

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.