Answer the question
In order to leave comments, you need to log in
How to clear a div?
A number is entered into the text field, after the input, the contents of the div block are displayed, if the number changes (oninput), then another content of this div block is displayed, but if the number changes, the old content + new content is displayed. How can I clear a div block?
Example: entered the number 1 , a quote was displayed, changed 1 to 2 and another quote was displayed, but the problem is that the old quote needs to be cleared.
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