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 3611560
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T21:53:27+00:00 2026-05-18T21:53:27+00:00

I had tried looking up on here many different answers to this question and

  • 0

I had tried looking up on here many different answers to this question and tried using their solutions, but it didn’t seem to work, such as this solution:
Is it possible to hide href title?

My question is how am I able to hide the title attribute tooltip when the user mouses over the picture? I tried using the <span title=" ">text</span> but it only caused the title tooltip to show the space or the span’s title attribute.

Here is my website.

  • 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-05-18T21:53:28+00:00Added an answer on May 18, 2026 at 9:53 pm

    I figured out the answer to my question. Thank you Gert G for getting me started! =]

    What I did in order to hide the title attribute, was first to put everything into a loop because otherwise, it will take the first link’s title and apply it to the picture clicked on:

    $("a[rel='portfolio']").each(function(e) {
    
    }
    

    Then, I declared a variable that contains the title to whatever elements you want them applied to:

    var title = $(this).attr("title");

    Once I declared the variable, I then created a function that hides the title when it’s moused over, then adds the title back on when I mouseout on it (for the purpose of having my lightbox, ColorBox).

    $(this).mouseover(
            function() {
                $(this).attr('title','');
            }).mouseout(
                function() {
                $(this).attr('title', title);
        });
    

    In order for the title to be viewed when click on, you have to add another function:

    $(this).click(
            function() {
                $(this).attr('title', title);
                }
            );
    

    Putting it all together, it looks like this:

    $("a[rel='portfolio']").each(function(e) {
        var title = $(this).attr('title');
        $(this).mouseover(
            function() {
                $(this).attr('title','');
            }).mouseout(
                function() {
                $(this).attr('title', title);
        });
        $(this).click(
        function() {
            $(this).attr('title', title);
            }
        );
    });
    

    I hope this helps everyone else looking for a similar or this exact solution!

    You can check out the changes here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've seen many variants of this question on SO but none of them had
Ok i tried looking on here to find this before, but no luck. The
I've tried looking for answers to get this working but haven't managed to do
i have tried looking online but had no luck, How i could delete all
I know this question has been asked 100x but I can't seem to find
I had accidentally tried this, which compiles! So I was wondering what could this
I had more database and I tried to make backup for them but they
I've tried in 2 forums, but I had no luck so far. So, I
I had implement this push notification . I tried with push first message, it
a bit of a softball CSS question here (hopefully). I'm looking for some CSS

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.