Answer the question
In order to leave comments, you need to log in
How to prevent the browser from manipulating the selected attribute of selects?
The essence of the problem. It is necessary that the first option in the list is always selected. Technically, only the first option needs to have the selected attribute set. However, if we select any other option and refresh the page (without resetting the cache), the element that we selected last time automatically becomes selected. And this cannot be reset either through js (except perhaps through a timer, which is extremely bad), or by setting any other selected.
Is there any way to offset this effect?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question