How to only show simpleTip if certain conditions are true?

Posted by Michael on Stack Overflow See other posts from Stack Overflow or by Michael
Published on 2011-03-18T16:08:49Z Indexed on 2011/03/18 16:10 UTC
Read the original article Hit count: 140

I'm working on my first jquery project and have a question regarding the simpletip plugin. I basically have a calendar where the user can click different meeting titles and the corresponding dates get shaded in with a certain color. I am then using the simpletip to display more detailed information about the meeting when the user hovers over that date.

What I want is for the simpletip to only display if the cell is colored in, or "on". When the calendar is blank and no meetings are activated, I don't want all the simpletips to show.

I have tried using an if statement with a .mouseover() - this works at first, when the cells are off, no simpletip. After the meeting is turned on and colored in, the first mouseover does nothing, then the second mouseover shows the simpletip, and then the simpletip remains active even after the cell is turned off.

Hope this makes sense... please help!

Thank you in advance

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about jquery-plugins