Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8428779
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T05:09:00+00:00 2026-06-10T05:09:00+00:00

I am creating a simple tooltip plugin, which shows title attribute contents as tooltip

  • 0

I am creating a simple tooltip plugin, which shows “title” attribute contents as tooltip text. So I want to disable the default browser behavior of showing the tooltip as I am displaying it in a div. So I used the code below, but this doesn’t work and I can see the default tooltip and my tooltip both together, default tooltip overlaps mine tooltip.

$("a").hover(function(e){
  e.preventDefault();   
});
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T05:09:01+00:00Added an answer on June 10, 2026 at 5:09 am

    Why don’t you just ensure that there are no alt and title attributes in the <a> tag.

    <a href="http://google.com" alt="Google!" title="Google!" />Goto Google</a>
    

    Changes to –

    <a href="http://google.com" alt="Google!"  />Goto Google</a>
    

    ​
    So all you have to do is run this jQuery code on all the <a> tags you want to remvove the default tooltip behavior on –

    $(".desiredElements").removeProp('alt').removeProp('title');
    

    If you want to maintain those tooltips for use at a later stage, you should save them in the $.data object, and return the values in the second hover function, the “hover out” callback.

    $('.desiredElements').hover(function() {
        $thisCached = $(this);
        $.data(this, 'title', $thisCached.attr('title'));
        $thisCached.removeAttr('title').removeAttr('alt');
    },function(){
        $thisCached = $(this);
        $thisCached.attr('title',$.data(this, 'title');
        $thisCached.attr('alt',$.data(this, 'title');
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i am creating simple call filter application which restrict unwanted calls. i use following
I'm creating simple image viewer, but I want to make a sorting of pictures
I am creating simple blog web application using play framework and i want to
I'm creating a simple jquery plugin named togglebutton. My question is at the bottom.
i am creating simple dashboard view in which i using createDashboardItem function item has
I am creating simple plugin, and I prepared few pages: add.php, edit.php, delete.php and
When creating a simple photo gallery with a crossfade effect I’m encountering weird behavior.
While creating a simple client for a REST service which I have stubbed out,
I'm creating simple example on JSF. It's small Login application. My problem is duplicate
I am creating simple app on Silverlight 4. In folder of View I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.