I am unable to disable a button using the getElementById()
method. I am looking for inspiration as to what I am doing wrong because I use it to enable a button but I cannot seem to be able to disable it.
I have tried calling the method in different ways:
document.getElementById('wsSubmit').disabled = false;
document.getElementById("wsSubmit").disabled = false;
document.getElementById('#wsSubmit').disabled = false;
document.getElementById("#wsSubmit").disabled = false;
document.getElementById(buttons[0]).disabled = false;
Button in question:
<input class="button" type="button" id="wsSubmit" onclick="closeWindowDWSC();" value="Submit" disabled>
I want the button to become enabled.