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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T05:34:08+00:00 2026-06-15T05:34:08+00:00

I have a hierarchal dropdown menu that visually differentiates hierarchy by using space characters

  • 0

I have a hierarchal dropdown menu that visually differentiates hierarchy by using space characters

Example

<select>
    <option value='1'>Top Level Item</option>
    <option value='2'>&nbsp;&nbsp;&nbsp;Lower Level Item</option>
    <option value='3'>&nbsp;&nbsp;&nbsp;Another Lower Level Item</option>
    <option value='4'>Another Top Level Item</option>
</select>

This works well in all browsers except for the iPhone where the spaces are ignored and all items are shown at the same level.

I’m using a reactive design (same DOM for mobile and desktop) and have decided that integrating jQuery Mobile just for the themed select isn’t a good option.

Are there any easy work arounds or small plugins that might help me accomplish this for IOS browsers?

<optgroup> elements are not a good fit b/c some of the parent options can be selected. <optgroup> do not allow for selecting the parent categories as best as I can tell

The core of the requirement for this feature is that all of a particular site’s navigation must be on one dropdown like element that is touch friendly.

  • 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-15T05:34:09+00:00Added an answer on June 15, 2026 at 5:34 am

    You might try to start your hierarchy-divider with the Zero Width Joiner / Zero Width Non-Joiner Entity using: &zwj; or &zwnj;

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

Sidebar

Related Questions

I have a Core Data based application that stores hierarchal data displayed using a
I have a select drop-down that is supposed to represent the hierarchy of pages
I have a user form that has dropdown boxes which i have populated using
I have a hierarchy of templated classes that are constructed in one place and
I have an hierarchy of classes that looks like the following: class Critical {
I have a data hierarchy that I currently display in a treeview. I was
I have an ASP.NET MVC (using the release candidate) application that works with a
I have a load of hierarchal static configuration data that I want to read,
Here's the situation: I have a menu that needs to be created dynamically from
I have Hierarchical data. select lpad(' ', 4*(level-1))||NAME from from_sql where where_sql CONNECT BY

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.