devwiki:html

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revisionBoth sides next revision
devwiki:html [2021/12/20 07:17] – [Style related operation] yingdevwiki:html [2021/12/20 07:19] – [html select dropdown and remove focus] ying
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: 2023/02/07 18:21
  • by ying