Im trying to disable a button and action link when the action link is pressed. I have tried everything online and nothing seams to work any suggestions?
my html code:
<button type="button" id="cancel" class="btn btn-default" data-dismiss="modal">Cancel</button>
@Html.ActionLink("Yes", "RemoveHandler", new { path = x }, new { onclick = "disable()" })
js:
function disable() {
document.getElementById("cancel").disabled = true;
document.getElementById("ok").disabled = true;
}