Afraid you can't. The preventDefault()
method doesn't seem to work for this, which is unfortunate because it would be ideal.
If you really need to retain the title attribute you could do something like this:
$(document).ready(function(){
$("a").hover(function(){
// Get the current title
var title = $(this).attr("title");
// Store it in a temporary attribute
$(this).attr("tmp_title", title);
// Set the title to nothing so we don't see the tooltips
$(this).attr("title","");
},
function() { // Fired when we leave the element
// Retrieve the title from the temporary attribute
var title = $(this).attr("tmp_title");
// Return the title to what it was
$(this).attr("title", title);
});
});
It's pretty convoluted though. Unless there's a specific reason you need to retain the title attributes, I would just remove them.