Answers for "javascript restore input field to blank"

1

how to make input field empty in javascript

Assuming the element you want to change has the id question, so you can do

document.getElementById("question").value = "";
Posted by: Guest on March-18-2021
0

how to reset input field in javascript

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

Code answers related to "javascript restore input field to blank"

Code answers related to "Javascript"

Browse Popular Code Answers by Language