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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T02:47:54+00:00 2026-05-23T02:47:54+00:00

I am using jQuery along with the Simple Tooltip plugin. ( http://dev.mariusilie.net/content/simple-tooltip-jquery-plugin ) I

  • 0

I am using jQuery along with the Simple Tooltip plugin. ( http://dev.mariusilie.net/content/simple-tooltip-jquery-plugin)

I have a function that loops through the cells of a table, checks to see if there is a match and then sets the title element and then calls the simple tooltip plugin.

This works perfectly when the page initially loads. The problem occurs when I try to change the title element without reloading the whole page. I can confirm that the title element for the cell does get updated but inspecting it using chrome but the tooltip still displays the old values when the mouse hovers over the cell.

I am quite sure this is a fundamental part of jQuery that I am just misunderstanding. Any input would be greatly appreciated.

EDIT: Ok I think I see whats going on although I dont know how to resolve it. Ever time I call $(cell).simpletooltip(); it adds the .hover to that element. I am guessing that each subsequent call to it for an element that already has the .hove attached is either failing or is adding it but the first one is still there and is the one that is triggered when the mouse hovers. Seems like I need to remove that first function..

This is the Simple Tool Tip plugin:

/**
*
*   simpleTooltip jQuery plugin, by Marius ILIE
*   visit http://dev.mariusilie.net for details
*
**/
(function($){ $.fn.simpletooltip = function(){
    return this.each(function() {
        var text = $(this).attr("title");
        $(this).attr("title", "");
        if(text != undefined) {
        $(this).hover(function(e){
            var tipX = e.pageX + 12;
            var tipY = e.pageY + 12;
            $(this).attr("title", ""); 
            $("body").append("<div id='simpleTooltip' style='position: absolute; z-index: 100; display: none;'>" + text + "</div>");
            if($.browser.msie) var tipWidth = $("#simpleTooltip").outerWidth(true)
            else var tipWidth = $("#simpleTooltip").width()
            $("#simpleTooltip").width(tipWidth);
            $("#simpleTooltip").css("left", tipX).css("top", tipY).fadeIn("medium");
        }, function(){
            $("#simpleTooltip").remove();
            $(this).attr("title", text);
        });
        $(this).mousemove(function(e){
            var tipX = e.pageX + 12;
            var tipY = e.pageY + 12;
            var tipWidth = $("#simpleTooltip").outerWidth(true);
            var tipHeight = $("#simpleTooltip").outerHeight(true);
            if(tipX + tipWidth > $(window).scrollLeft() + $(window).width()) tipX = e.pageX - tipWidth;
            if($(window).height()+$(window).scrollTop() < tipY + tipHeight) tipY = e.pageY - tipHeight;
            $("#simpleTooltip").css("left", tipX).css("top", tipY).fadeIn("medium");
        });
    }
});
}})(jQuery);

Below is my code:

 // Iterate over each cell for the day and assign a category css class to each.
    $('table.tstat_program_hours td[data-day=' + dayOfWeek + ']').each(function(index, elem) {
        var cell = $(this);
        var cellHour = cell.attr('data-hour');

        var tempTitleInLoop = '';

        if (cellHour < data['wake_time']) {
            tempTitleInLoop = 'Night';
            cell.attr('title',tempTitleInLoop);
        }   

        /* set the wake */
        if(cellHour < data['morning_time']&&cellHour >= data['wake_time']) {
            tempTitleInLoop = 'Wake';
            cell.attr('title',tempTitleInLoop);
        }

        /* set the morn */
        if(cellHour < data['evening_time']&&cellHour >= data['morning_time']) {
            tempTitleInLoop = 'Day';
            cell.attr('title',tempTitleInLoop);
        }

        /* set the evening */
        if(cellHour < data['night_time']&&cellHour >= data['evening_time']) {
            tempTitleInLoop = 'Eve';
            cell.attr('title',tempTitleInLoop);

        }

        /* set the night */
        if(cellHour >= data['night_time']) {
            tempTitleInLoop = 'Night again';
            cell.attr('title',tempTitleInLoop);
        }



        $(cell).simpletooltip();
  • 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-23T02:47:55+00:00Added an answer on May 23, 2026 at 2:47 am

    Try $(cell).unbind().simpletooltip();

    Which should remove the onMouseOver event from that element.

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

Sidebar

Related Questions

Greetings, I'm using https://github.com/blueimp/jQuery-File-Upload (downloaded the version as of 5/21/2011) along with ASP.NET MVC3.
I'm using .net 2.0. This is a project that I have taken over for
What are some good jQuery Resources along with some gotchas when using it with
I'm using the jQuery.Validation plugin for client side validation, and among other things I
Using jQuery, is there a way to select all tag that reference a specific
Using jQuery, how would you find elements which have a particular style (eg: float:
I have a simple jquery/ajax request to the server which returns the structure and
I am using Jquery FadeIn/FaeOut to show and hide content on my page. Like
I have a ASP.Net TreeView Control with Checkboxes along Child nodes. I want to
I am using jQuery Tools validator and I would like to add a simple

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.