Answer the question
In order to leave comments, you need to log in
Is there a general command to reset the text in windows that close and then reopen without refreshing the page?
Hello! What can be done so that when opening a window, entering text there, closing it and reopening (without refreshing the page), all information is reset? Is there a general command or should I write it separately for each window? Thank you!
Answer the question
In order to leave comments, you need to log in
Here's an idea (not tested)
document.onload(function (event) => {
$('input, select, textarea').val('');
});
Many, if not all, modals have beforeShow events. Clear input fields on this event.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question