Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revisionBoth sides next revision | ||
devwiki:html [2021/12/20 07:17] – [Style related operation] ying | devwiki: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(" | ||
+ | tmp_choice_input.selectedIndex = " | ||
</ | </ |