Answer the question
In order to leave comments, you need to log in
How to set empty value for all inputs with the same class?
There are several inputs that have one common class, it is necessary that all entered values in them be replaced by "". How can this be done in pure JavaScript without Jquery?
Answer the question
In order to leave comments, you need to log in
Maybe so?
document.querySelectorAll('input.класс').forEach(element => {
element.value = '';
})
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question