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
Post a Comment