Jun
9
2013

Prevent unwanted title tag display

//Prevent unwanted title tags from being displayed
$('[title]').each(function(){
    $(this).data('original-title', $(this).attr('title'));
}).hover(
    function () { 
        $(this).attr('title','')
    }, function () { 
        $(this).attr('title',$(this).data('original-title'))
});

Leave a comment