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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T22:59:44+00:00 2026-06-07T22:59:44+00:00

I have a nested menu list like below. At the moment, when someone clicks

  • 0

I have a nested menu list like below. At the moment, when someone clicks the main menu item, it follows that link. I was wondering if there is a way to get touchscreens to display the drop down menu without following the main menu item? The submenu has been styled ot display when the main menu item is hovered over

  • Main Menu Item
    • Sub Menu Item
  • 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-06-07T22:59:46+00:00Added an answer on June 7, 2026 at 10:59 pm

    I hope you are trying to do as mentioned in this demo: http://jsfiddle.net/akhurshid/rvy6U/

    NOTE: hover event is not present in touch devices, while tap event is present in touch devices. tap and click events behaves same.

    jQuery

    $('#accordion li').click(function(){
    
        if($('.sub').css('display') == 'none') {
            $(this).find('a').next('.sub').stop().slideToggle('slow')
        } else {
            $(this).find('a').next('.sub').stop().slideToggle('slow')    
        }
    
    });​
    

    HTML

    <ul id="accordion">
        <li><a href="#">Section 1</a>
            <ul class="sub">
                <li>Mauris mauris ante</li> 
                <li>blandit et, ultrices a</li>
            </ul>
        </li>
    
        <li><a href="#">Section 2</a>
            <ul class="sub">
                <li>Mauris mauris ante</li> 
                <li>blandit et, ultrices a</li>
            </ul>
        </li>
    </ul>  
    

    CSS

    .sub {
        display: none;
    }​
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a nested ul menu structure that starts off like this: <div id=left>
I have a unordered list nested inside of an unordered list like below: <ul
I have a nested menu like this: <ul id=menu> <li>Home <ul> <li>New</li> <li class=selected>Open</li>
I have an image that has a nested context menu defined in the XAML
I have a CSS <ul> <li> nested menu that works perfectly in IE 8
I have a vertical nav menu that is made up of nested lists, however
I have a fairly large, three level deep, menu consisting of nested lists like
Got a mobile site with a jquery mobile menu (nested-list). Every item in the
I'm making a sub nav in wordpress and have a nested list style menu.
I have a pretty standard CSS based dropdown menu. The main list is #mainNav

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.