I have an anchor element with a title attribute. I want to hide the popup that appears when hovering over it in the browser window. In my case, it is not possible to do some
In CSS it's not possible, because you can only add contents to DOM (tipically with :before :after
and content: '...';
, not remove or change attributes.
The only way is to create a live custom event (es. "change-something"
):
$("a").on("change-something", function(event) { this.removeAttr("title"); });
and trigger to every changes:
... $("a").trigger("change-something");
More information and demo here:
http://api.jquery.com/trigger/
http://api.jquery.com/removeAttr/