I have the below code in a external script and when the condition is true the message echo's to the login screen (this works fine). As a test I want the submit button to be disabled too, but how to achieve that? The ID of the button is "btn_input"
if(txtboxval == "" || emailboxval == "")
{
document.getElementById("announcement").innerHTML="This is a text!";
return;
}
Is this possible?