This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
devwiki:html [2021/12/20 07:17]
ying [Style related operation]
devwiki:html [2021/12/20 07:19] (current)
ying [html select dropdown and remove focus]
Line 201: Line 201:
 choice_input.blur() // remove focus from this input choice_input.blur() // remove focus from this input
 } }
 +// also if you have onload function, you can add this to onload to reset last choice when refresh browser
 +const tmp_choice_input= document.querySelector(".my_choice")
 +tmp_choice_input.selectedIndex = "0";
 </code> </code>
  • devwiki/html.txt
  • Last modified: 2021/12/20 07:19
  • by ying