js input value is empty code example
Example 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 = "";
Example 2: hhow to check input is null in html using js
function required(inputtx)
{
if (inputtx.value.length == 0)
{
alert("message");
return false;
}
return true;
}