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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T07:14:00+00:00 2026-05-24T07:14:00+00:00

I was creating some form when I saw that in Firefox. In a select

  • 0

I was creating some form when I saw that in Firefox. In a select box, if you add a disabled option as first choice… it select the next available option

<option disabled="disabled" value="false">Choose option</option>
<option value="1">Value 1</option>

It will select “Value 1” when the page is loaded.

Why every browser will select the disabled one by default and Firefox not?

Load this in Firefox : http://jsfiddle.net/6WjgZ/1/

and other browser you’ll notice that Firefox bypass the disabled one and select the “Value 1” by default.

  • 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-24T07:14:01+00:00Added an answer on May 24, 2026 at 7:14 am

    Assuming you want a workaround, run this code on DOM Load (or body load) to fix it in Firefox

    document.getElementById("mySel").selectedIndex = 0;
    

    http://jsfiddle.net/6WjgZ/2/

    Not sure if this can be called a bug (more of a behavior style), if you think about it, FF doesn’t let you choose disabled items. Neither does other browsers (except IE) but then, they choose to behave differently for the initial load.

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

Sidebar

Related Questions

I am creating a custom zend form element that will require some javascript. I
I'm creating some text boxes on my form programmatically which I need to reference
I am creating an HTML form with some radio button options. I'd like to
I am creating some build scripts that interact with Perforce and I would like
I am considering creating some JSP-tags that will always give the same output. For
I am creating some functionality whereby upon submitting a form, a success message is
I'm creating some form to filter my users, table User and I'm discovering the
Hi I need some help on getting started with creating my first algorithm; I
I am creating a webpage which will retreive some form data from lots of
I am creating some forms inside a scroll box, dynamically. When I click 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.