Answer the question
In order to leave comments, you need to log in
Why are the values of the select tag reset on the event onchange="location.reload();" in google chrome?
there is a select
<select class="form-control" id="loanEnd" onchange="location.reload();">
<option value="0">Выбрать...</option>
<option value="1">Один</option>
<option value="2">Два</option>
<option value="3">Три</option>
</select>
Answer the question
In order to leave comments, you need to log in
location.reload() works like a page reload button in a browser. The behavior of input fields on reload is determined by the browser itself and by installed extensions (for example, those that save form data).
Use AJAX to update information on the page without reloading, or store the data in localStorage/sessionStorage for the duration of the reload.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question