A
A
Alexey Nikolaev2014-10-05 02:05:55
JavaScript
Alexey Nikolaev, 2014-10-05 02:05:55

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

1 answer(s)
E
Evgeny Petrov, 2014-10-05
@Heian

Hard browser caching of form text fields, how to fix?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question