Disable: The button: $('#SubmitButton').prop('disabled', true); The css of the button: document.getElementById('SubmitButton').setAttribute("class", "ButtonLink_disabled"); Enable: The button: $('#SubmitButton').prop('disabled', false); The css of the button: document.getElementById('SubmitButton').setAttribute("class", "ButtonLink_enabled");