check to make sure input field is not empty javascript code example
Example: if input value is null do something
if(document.getElementById("question").value.length == 0)
{
alert("empty")
}
if(document.getElementById("question").value.length == 0)
{
alert("empty")
}