Answers for "on sareching input field empty"

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

empty input field on click

<button onclick=
            "document.getElementById(
             'inputField').value = '' ">
      Click To Clear
  </button>
Posted by: Guest on August-10-2021

Code answers related to "on sareching input field empty"

Code answers related to "Javascript"

Browse Popular Code Answers by Language