Se o valor da entrada for nulo, faça algo
if(document.getElementById("question").value.length == 0)
{
alert("empty")
}
Scary Salamander
if(document.getElementById("question").value.length == 0)
{
alert("empty")
}