Firefox ignores option selected=“selected”

前端 未结 20 1663
你的背包
你的背包 2020-11-28 21:59

If you change a dropdown and refresh the page, Firefox seems to ignore the selected attribute.

20条回答
  •  无人及你
    2020-11-28 22:41

    Neither autocomplete="off" or placing it inside a form works for me.

    What worked was to only use the attribute selected with no "value" like this:

    
    
    

    so either it renders , or just

提交回复
热议问题