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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T22:46:50+00:00 2026-06-16T22:46:50+00:00

I need a menu that looks like a select box, but is made from

  • 0

I need a menu that looks like a select box, but is made from a UL generated by WordPress. Rather than converting it to an actual select box, which creates style issues, I want to use jQuery show/hide.

I couldn’t find any jQuery plugin made for this – to make a little select menu from a UL. The look I want eventually is like this: http://shaggysmile.github.com/jQueryCoreUISelect/. But this plugin uses an actual select box, and I’m in WordPress using a UL.

Here’s the Fiddle: http://jsfiddle.net/uthNv/1/

I need to replace this line of code with something better:

if($(this).next('li').is(':hidden') == true) {

The problem with using the next LI is that the last menu item doesn’t work. Any suggestions please, or knowledge of a jQuery plugin that already does what I need?

  • 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-16T22:46:51+00:00Added an answer on June 16, 2026 at 10:46 pm

    You can try with this: http://jsfiddle.net/uthNv/2/

    if($(this).siblings('li:hidden').length) {
    

    Issue in your condition was it was checking only the next li which is hidden not the prev li so instead if you use .siblings() which is at same level that would work.

    in this condition you can check the .length of the hidden li if that is true then your else statement will get executed.

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

Sidebar

Related Questions

I have a drop down menu that looks like this: It works fine, but
I need something that looks like a popup menu in Android 1.5 that I
I have a generated HTML menu that looks like this : <ul class=principal-nav> <li><a
I have a select menu that looks like this: <select id ="cal-category-select"> <option value="/event-sort/list/2009/9/sports/">Sports
I need to make a dynamic menu that looks exactly like this. I figure
I need same menu like on this site http://www.salesforce.com/aloha.jsp in wordpress theme. Multilevel dropdown
Hi all i would like to build a menu that looks like a table
i need to show a menu that derive another menu and this derive another
I need to center a CSS menu that has an unknown width. I found
I need to find some way of displaying a drop-down menu that depending on

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.