Disabling browser tooltips on links and s

前端 未结 8 2267
误落风尘
误落风尘 2020-11-29 06:55

I want to suppress the web browser\'s default tooltip display when a user hovers over certain links and elements. I know it\'s possible but I don\'t know how. Can anyone he

8条回答
  •  醉话见心
    2020-11-29 07:36

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

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

提交回复
热议问题