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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T12:25:31+00:00 2026-05-12T12:25:31+00:00

I want to make a dropdown menu for my website with jquery… a couple

  • 0

I want to make a dropdown menu for my website with jquery… a couple of problems occur:

  1. The wildcard doesnt seem to work
  2. It won’t select it’s children with ul.

HTML:

<li class="px6RANDOM">
    <a href="LINK">
        <span>Disclosure</span>
    </a>
    <ul class="subMenu">
          <li>1</li>
          <li>2</li>
          <li>3</li>
    </ul>
</li>

JQuery:

$(function(){
    $("li.px\\S*").children("ul").hide();

    function show() 
    {
        $(this).children("ul").show();
    }
    function hide() 
    {
            $(this).children("ul").hide();
    }

    $("li.px\\S*").hoverIntent({
        sensitivity: 1, 
        interval: 50,   
        over: show,     
        timeout: 1000,  
        out: hide
    });

});

What am I doing wrong? The selector seems to be in order and the children function as well!

I’m a jquery/javascript newbie but want to learn. Please help!


  • 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-12T12:25:31+00:00Added an answer on May 12, 2026 at 12:25 pm

    Try this:

    $("li[class^='px']")
    

    As for show and hide: even when the selectors will work, this isn’t defined as you expect. Try adding it as an argument for the functions, or remove the functions and inline the code.

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

Sidebar

Related Questions

I want to make a dropdown menu using jquery, but it closes even it
I want to make a dropdown menu like delicious has at this http://delicious.com/search?context=all&p=sql&lc=1 page.
I am using jquery mega menu plugin and I want to make the right
I want to make drop-down menu with jquery (here's the according jsFiddle ). HTML:
I want to make a dropdown menu, so I have a horizontal navigation with
I want make datetimepicker in my project. Using jquery how it is possible? I
I want to create a Dropdown menu where I have 3 level, I have
I'm trying to make a CSS & JS based dropdown-menu. This example works in
it's possible make a dropdown menu where menu's fields are datas that comes from
Using JQuery, how can I check to see if a dropdown menu contains a

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.