JQuery ToolTip
JQuery ToolTip
Hey Folks,
i trying to get a Tooltip function running. The Basicfunction is working but i need to pass a label value to the function.
My site looks like this...
- <label name='hint' value='1'>Labeltext</label>
<label name='hint' value='2'>Labeltext</label>
<label name='hint' value='3'>Labeltext</label>
Im binding the function to the label like this.
- $("label#hint").bind({
mousemove : changeTooltipPosition,
mouseenter: showTooltip,
mouseleave: hideTooltip
});
and the show tooltip looks like this
- var showTooltip = function (event) {
var url = "/Trainer/GetSessionSummary";
$.get(url, { sessionId : event }, function(data) {
$('div.tooltip').remove();
$('<div class="tooltip">' + data + '</div>').appendTo('body');
changeTooltipPosition(event);
});
};
Sorry maybe it is very easy.. But I'm really a starter..
How can i pass the label value to the showTooltip function ?
Hope you can help me..
Thank in adavance ..
Spanky