Firefox ignores option selected=“selected”

前端 未结 20 1664
你的背包
你的背包 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:34

    In firefox, I've notice that the "selected" attribute will not work unless you place the select inside a form, where the form has a name attribute.

提交回复
热议问题