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 7062823
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T04:38:25+00:00 2026-05-28T04:38:25+00:00

I have the follwing HTML <ul class=shopp_categories> <li class=current> <a class=current href=link>Gifts For Her</a>

  • 0

I have the follwing HTML

 <ul class="shopp_categories">
    <li class="current">
      <a class="current" href="link">Gifts For Her</a>
      <ul class="children active" style="display: none;">
        <li><a>Hand Bag Holders</a></li>
      </ul>
    </li>

    <li><a href="link">Gifts ForHim</a></li>
    <li><a href="link">Innovative Gifts</a></li>
    <li><a href="link">Jewellery</a>   
      <ul class="children" style="display: none;">
        <li><a>Alrun Runes</a></li>
      </ul>
    </li>
  </ul>

and the following jQuery

jQuery(document).ready(function() {
    $('ul ul').hide();
    $('ul.children active').show(); 
    $('ul.children li a').removeAttr("href");
    $('ul.children li > a').mouseover(function(event) {
        $('ul ul').hide('slow');
        $(this).parent().find('ul').toggle('slow');
    });
});

I can get the child UL’s to hide but I cant get them to show on mouse over or stay open if they are active

  • 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-28T04:38:26+00:00Added an answer on May 28, 2026 at 4:38 am

    To prevent them from hiding when active, you simply need an if statement, something like:

    if(!$(this).hasClass('active')){ //if it doesn't have the class active
        $(this).hide();
    }
    

    Regarding the first problem you mention, when you hide an element it gets the style display:none. At that point, no mouse events can fire on the element. You can’t click it, mouse over it, mouse off it, etc because it is removed from the rendered document.

    And FYI, you have an error in your syntax: $('ul.children active') should be $('ul.children.active').

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

Sidebar

Related Questions

I have a HTML page containing follwing links <a class=out href=www.a.com/hgfgtsdfdffsdfsdf>sdfsssdfddf</a> <a href=www.a.com/hgfgt>dsfdsf</a> <a
I have following HTML: <div class=olympics style=display: block; position: absolute; left: 250px; top: px;>
I have the following HTML code: <div id=filter-bar> <ul> <li><a href=#image class=current><?php _e('Image','sofa'); ?></a></li>
I have the following html : <div class=mainmenu> <ul class=blue> <li class=><a href=tst/ id=a1_up><span
I have the following html. <input class=gallery-next1 type=hidden value=2><a href=# class=gallery-next >unu</a></input> and the
I have the following html page: <body> <div class=hide1 style=width:1000px; height:1000px;> <table width=100% border=0
I have the following html and css <div id=header> <div id=headerTopLeft> <div id=areaSelect style=display:
I have the following HTML <tbody class=t_bdy> <tr class=Quotation_List_td> <td class=item><a class=button2 crm_insert href=#>Insert</a><a
I have the following html structure: <div class=divClass> <a class=aClass href=#> <img src=xxxx.jpg <span
I have the following HTML: <ul class=container_12> <li class=Home current title=> <a title=>Home</a> <ul>

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.