Reputation: 1643
I hope this is an easy question. I have some @Html.ActionLink in my navbar that when I hover over them the browser displays a little tooltip that gives the page name. I do NOT want this to happen. Its probably bad practice to take this default functionality out but I need to. I don't know where or how to do this though.
Upvotes: 2
Views: 2833
Reputation: 11
@Html.ActionLink("Button Text", "ActionName", "ControllerName", new { para_name = param_value} , new { @class = "btn btn-info btn-sm", @title="text you want to see when hovering" });
Upvotes: 0
Reputation: 16743
I can't test this right now, but the tooltip is coming from the title
attribute, you should be able to empty that out like:
@Html.ActionLink("Home", "Index", "Home", null, new { title="" })
If that doesn't work, perhaps a jQuery solution:
$('a').attr('title', '');
Upvotes: 5