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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T19:37:41+00:00 2026-05-17T19:37:41+00:00

I have built a mega menu, where when you click on the nav link

  • 0

I have built a mega menu, where when you click on the nav link it opens, and when you click again it closes (that works correctly). There is also a close link inside that should toggle it closed when clicked, However in IE, it just reopens it everytime it is clicked. It works correctly in Firefox, Chrome and Safari.

It menu has to open and close with clicks because some of the computers use touch screens. Any ideas?

Here is the stripped down code (showing only one nav link):

JQuery:

$(document).ready(function(){
 $('div.megamenu> div').hide();  

 /* This toggles the nav link open and closed --works correctly */
 $(".Benefits-Down").click(function() {
      $(".Benefits-Dropped").slideToggle("Fast");
  });

/*This is suppose to also toggle it closed, but it doesn't work in IE*/
  $(".Benefits-Close").click(function() {
            $(".Benefits-Dropped").slideToggle("Fast");
  });

});

HTML:

<div class="megamenu">
    <ul>
    <li class="Benefits-Down">Link goes here /*removed so question would post */</li>
 <div class="Benefits-Dropped">
         Links                          
        <div class="Benefits-Close">
                   <a href="#">Close</a>        
               </div>
         </div>
      </ul>
</div>
  • 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-17T19:37:41+00:00Added an answer on May 17, 2026 at 7:37 pm

    It’s because you have invalid markup, a <div> isn’t a valid child of a <ul> and IE doesn’t really tolerate it, either place it inside the <li> like this:

    <div class="megamenu">
      <ul>
        <li class="Benefits-Down">Link goes here /*removed so question would post */
          <div class="Benefits-Dropped">
            Links                          
            <div class="Benefits-Close">
              <a href="#">Close</a>        
            </div>
          </div>
        </li>
      </ul>
    </div>
    

    Or outside the <ul>, like this:

    <div class="megamenu">
      <ul>
        <li class="Benefits-Down">Link goes here /*removed so question would post */</li>
      </ul>
      <div class="Benefits-Dropped">
        Links                          
        <div class="Benefits-Close">
          <a href="#">Close</a>        
        </div>
      </div>
    </div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have built a console application that works okay when it references a .exe
I have built an MSI that I would like to deploy, and update frequently.
I have built an application in C# that I would like to be optimized
I have built a .dll under WinXP that claims it can't find DWMAPI.DLL when
I have built a MS Access 2007 application that can create reports files in
I have built an application that uses SQL Express 2005 and I want to
I have built a WCF Service that is being consumed by a Silverlight app.
I have built a universal app. I have assets that are for both but
We have built a Windows Service that is running on client's machines, which occasionally
I have built two XML files that map the content of a given folder:

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.