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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T15:39:53+00:00 2026-05-25T15:39:53+00:00

I wonder, is it possible to show Select one by default as selected option

  • 0

I wonder, is it possible to show “Select one” by default as selected option but hide from options list when user clicks to open select menu? I mean, something like placeholderfor text input field. Is there anyway to do it with js or something else? Thanks in advance

UPDATE

Lets say we have select menu

<select>
<option value"">Select one...</option>
<option value"1">Option 1 </option>
...
</select>

What i’m gonna do is, remove <option value"">Select one...</option> from options list when user opens menu, and return back to default state when user closes menu.

  • 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-25T15:39:54+00:00Added an answer on May 25, 2026 at 3:39 pm

    Maybe like this:

    <SELECT NAME="browser" VALUE="" 
      onchange="var opt=this.options[0];if(opt.getAttribute('role')==='placeholder'&&!opt.selected)opt.parentNode.removeChild(opt);">
        <option role="placeholder" value="">Which Web browser do you use most often?</option>
        <OPTGROUP LABEL="Firefox">
          <OPTION LABEL="2.0 or higher">
            Firefox 2.0 or higher
          </OPTION>
          <OPTION LABEL="1.5.x">Firefox 1.5.x</OPTION>
          <OPTION LABEL="1.0.x">Firefox 1.0.x</OPTION>
        </OPTGROUP>
        <OPTGROUP LABEL="Microsoft Internet Explorer">
          <OPTION LABEL="7.0 or higher">
            Microsoft Internet Explorer 7.0 or higher
          </OPTION>
          <OPTION LABEL="6.x">Microsoft Internet Explorer 6.x</OPTION>
          <OPTION LABEL="5.x">Microsoft Internet Explorer 5.x</OPTION>
          <OPTION LABEL="4.x">Microsoft Internet Explorer 4.x</OPTION>
        </OPTGROUP>
        <OPTGROUP LABEL="Opera">
          <OPTION LABEL="9.0 or higher">Opera 9.0 or higher</OPTION>
          <OPTION LABEL="8.x">Opera 8.x</OPTION>
          <OPTION LABEL="7.x">Opera 7.x</OPTION>
        </OPTGROUP>
        <OPTION>Safari</OPTION>
        <OPTION>Other</OPTION>
      </SELECT>
    

    OPTION with custom tag role="placeholder" must placed first inside SELECT to work properly.

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

Sidebar

Related Questions

I wonder if it is possible to user Jquery ui datepicker to only show
I wonder if it is possible to create an executable module from a Python
I wonder if is it possible to run mysql command which can select an
I don't think it's possible from what I've read, but wanted to see if
I wonder if it is possible to show data values on levelplot (lattice package)
I'm new to XSLT. I wonder if it is possible to select a substring
I'd like implement a pagination. So I just wonder whether it's possible to select
I wonder if its possible to keep child elements from being animated. like in
I wonder if is possible to use FTS with LINQ using .NET Framework 3.5.
i wonder if it is possible to cascade converters when using wpf databinding. e.g.

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.