The following button has been disabled using the following code
document.getElementById('myButton').disabled= true;