In html how to clear typed texts in textarea one by one by clicking the button instead of clearing all typed text at a instant. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

In html how to clear typed texts in textarea one by one by clicking the button instead of clearing all typed text at a instant.

HTML CLEARING TEXT ONE BY ONE ON TEXTAREA.(NO RESET).This for editing required text in a textarea.IS IT POSSIBLE?

30th Jan 2020, 12:37 PM
Yogeshwaran
1 Answer
0
it is possible, but not the prettiest code ever. use setTimeout for a delay. inside take the value of your text area, remove the last character from it, then put it back. create a condition so setTimeout stop after the value is empty
30th Jan 2020, 2:30 PM
Taste
Taste - avatar