Hide native tooltip using jQuery

后端 未结 11 799
南旧
南旧 2020-12-01 05:00

Is there a way to hide the native tooltip action when a user hovers over a anchor tag with a title attribute? I don\'t want to remove it just don\'t display the nasty yellow

11条回答
  •  [愿得一人]
    2020-12-01 05:24

    You can hook the 'mouseenter' event and return false which will stop the native tooltips from being displayed.

    $(selector).on( 'mouseenter', function(){ return false; });

提交回复
热议问题