HTML selection is empty no matter what I do

I have to do something really stupid.

No matter how hard I try, I always get an empty choice.

This is the code:

   <select>
       <option disabled="">jknjk</option>                     
       <option selected value="local">  </option>                           
       <option value="preorder"> </option>    
    </select>

      

enter image description here

I swear I've used picks before and never had a problem with it. But I have no idea why this works, so in this case when it shouldn't.

If I click on it once after downloading, it can be used. As you can see, it selected the value (in the inspector)

Could there be some CSS that makes it behave like this?

Full image

Full css styles attached to select element

+3


source to share


1 answer


This seems to be a Chrome bug discussed in this question and this question. The workaround is to apparently set "autocomplete =" off "on the form. Maybe watch the status of the bug report that was logged in the second link to see a fixed bug or find a permanent solution.



+3


source







All Articles