On Nov 11, 2007, at 8:53 AM, amircx wrote:
hey
im trying to do a input's that once they are get mouseover it will
open a
tooltip with options like edit and stuff (icons)
my question is in cluetip how can i hide/show a tip via javascript
command
instad of the "close " button?
and also, is there a flag that i can check is the tooltip is
currently shown
or not?
--
View this message in context: http://www.nabble.com/cluetip-events-
tf4785879s27240.html#a13691495
Sent from the jQuery General Discussion mailing list archive at
Nabble.com.
Hi there,
If you bind a cluetip to a particular element, you can probably
trigger the events to get it to show and hide for that element.
For example, let's say you have this: $('#element').cluetip();
You should be able to trigger it like this:
$('#element').trigger('mouseover'); // show the cluetip
$('#element').trigger('mouseout'); // hide the cluetip
To check if the tooltip is currently shown before doing something,
you can do this:
if ( $('#cluetip').is(':visible') ) {
// do something.
}
hope that helps.
--Karl
_________________
Karl Swedberg
www.englishrules.com
www.learningjquery.com