Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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 = "";
 
PREVIOUS NEXT
Tagged: #input #field #empty #javascript
ADD COMMENT
Topic
Name
8+6 =