2
I have the following link in my view :
@Html.ActionLink(" ", "Editar", new { id = item.ID }, new { @id = "btnEditar" })
And when loading the page, I have to block this link, according to the user’s profile. I’m trying to disable the link click this way :
$('#btnEditar').prop('disabled', true);
$('#btnEditar').css('cursor', 'not-allowed');
However, by clicking the button, the event is being triggered, which I don’t want. What should I do ?