asp.net mvc - In html attributes setting disabled = "disabled" not working -


@html.actionlink(" ", "edit", new { id = item.userid }, new { title = "user not editable" , @class = "edit_btn", disabled = "disabled"}) 

i want disable actionlink setting html attribute disabled ="disabled", not working. able class , title attributes actionlink not getting disabled.

can help.. doing wrong.

the disabled attribute doesn't work in anchor tags. mvc renders expect, disabled="disabled", browsers ignore it.

you need different, such not rendering anchor @ all, render text or in span.


Comments

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -