I have an @Html.ActionLink
in a webpage.
@Html.ActionLink("Hello ", "Index", "Manage", routeValues: new { Area = "" }, htmlAttributes: new { title = "Manage", @class = "user-btn clientName"})
The clientName
contains the name of the user. I have an ajax call that sets the clientName
$.ajax({
type: "GET",
url: url,
data: { userId: currentUserId },
success: function (data) {
$(".clientName").text($(".clientName").text() + data + "!");
},
failure: function (data) {
}
});
Now I need only a text instead of the ActionLink. I don't know how to use the TextAreaFor
in this case.
I have tried with a javascript to disable the link, it is disabled, but it is still a link.
Can you please help me with a css
for ActionLink to be like a text, or with a solution to write that clientName
in a text. Thanks