Hello I am using
document.getElementById("Button").disabled = "disable"
but am getting error, help me
Answer (1)
Use follow code in javascript to disable button
document.getElementById("submitnewquestion").disabled = true;
if you want enable button use
document.getElementById("submitnewquestion").disabled = false;
Note : button type="submit"