Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6929011
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T11:15:48+00:00 2026-05-27T11:15:48+00:00

I have 2 links: category1 and category2. I want to slide down text when

  • 0

I have 2 links: category1 and category2. I want to slide down text when mouse click over appropriate link. For example if someone clicks over category1 I want to slide down category1 content. And if soneone clicks over category2 I want to slide down category2 content and close category 1 content. I also want slide up link inside both of category1 and category2. If user clicks over that I want to slide up appropriate category (that is close content). How can I do that? Thank you in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T11:15:48+00:00Added an answer on May 27, 2026 at 11:15 am

    You haven’t posted any HTML, so I’m assuming that you’re using markup which is more or less “standard” when it comes to menus.

    So assuming that you’re within the ballpark of the following markup:

    <ul id="menu">
        <li>Category 1
            <ul><!-- links --></ul>
        </li>
        <li>Category 2
            <ul><!-- more links --></ul>
        </li>
        <!-- ... and so on -->       
    </ul>
    

    You can achieve what you want (from what I understand), using something like:

    jQuery(function($) {
    
        var $menu = $('#menu'),
            $menu_items = $menu.children('li')
            ;
    
        $menu_items.click(function () {
    
            $menu_items.not(this).slideUp();
            $(this).slideDown();
    
        });
    
    })
    

    This way, you don’t have to add / change any code when you add / remove menu items from your #menu.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have links like these that I want to change: mypage.com?page=missions&id=5 mypage.com?page=hello I tried
I have links on a ,page that I want to use to jump to
I have outbound links like this in my html: <a href=http://www.example.com class=gaLink1 target=_blank onCLick=ga_track_link('action',
I have a link from that link: http://api.maxxiscentral.com/maxxiscentral/GetTyrePatterns from this link i want to
Let's say I have two tables: Category and Product , and Product links to
I have sql statement one; select linkscat.id, linkscat.category from linkscat, contentlinks, links where contentlinks.linksid
For edit home status of category I have a link: <span class=\ha\ title=\Active in
I have links on a PHP page where it lists all records from a
I have links inside an article element. While clicking on the element a checkbox
I have links on the side of my page such as home, news, contacts,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.