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

  • Home
  • SEARCH
  • 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 508269
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T06:53:23+00:00 2026-05-13T06:53:23+00:00

Please, I want to simulate dropdown select, but there will be just links, no

  • 0

Please,

I want to simulate dropdown select, but there will be just links, no form.
Trouble is how to have selected, and visible category or subcategory link where You are currently?

<ul><li>Category
   <ul>
     <li>Subcategory1</li>
     <li>Subcategory2</li>
   </ul>
</li></ul>

So, when you are on the Category, visible will be name of Category and this is easy because its first LI, but when you are on subcategory then the name of the subcategory will be “selected” and visible.

If you have some other solution then list, suggest me.

Sorry for my english i don’t know how to explain better 🙂

  • 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-13T06:53:24+00:00Added an answer on May 13, 2026 at 6:53 am

    If I understand you correctly, it sounds to me like you just need a couple div elements. One to show the currently-selected item, and the other to show the entire menu (minus the current element?).

    If that is the case, you can attach a click event to each menu item that will update the text of the top div:

    <div id="current_page">Default Value</div>
    <div id="current_menu">
      <ul>
        <li><a href="page1.html">Page 1</a></li>
        <li><a href="page2.html">Page 2</a></li>
      </ul>
    </div>
    

    Then you’ll use jQuery to add some effects and logic:

    $("#current_page").click(function(){
      $("#current_menu").slideToggle();
    });
    
    $("#current_menu a").click(function(event){
      event.preventDefault(); //prevent synchronous loading
      $("#current_page").html($(this).text());
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just want to show text please wait while app is searching for satellite
Here's what I want to do. I have a big xml file (there are
I have one IP packet, which includes IGMP packet. I want to simulate this
Should sound weird, but this is just for my hobby. I would want a
i have a html form. And i want my output to be in excel
if you please I just want to know how can I replay to sms
Please see this fiddle I want the scrolling div stop following when left div
I want to Integrate Weather radar on my MapView.Please anyone help on doing this
I want to create a box like this with title: Can any one please
Could someone please explain when would I want to use delegation instead of inheritance?

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.