Answers for "how to reset input field in javascript"

0

how to reset input field in javascript

document.querySelector('#counter').value = '';
Posted by: Guest on April-09-2021
-1

js clear text in input

<input type="text" value="A new value" onfocus="if(this.value=='A new value') this.value='';">
Posted by: Guest on December-23-2020

Code answers related to "how to reset input field in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language