How to use the javascript this
Hi,
I wonder if i in some way can use the javascript this object and how i can relate it to an object i jQuery without having to specify a id or name on the HTML tag
My tip works fine if the object have a id or name, but sometime it would be nice to put the tip on the <tr> so the tip cover the whole line, but for now the reg. is id or name for the mouseout to work.
So is there a way to bind events based on javascript this identifier without any more information
e.g
<div onmouseover="jTip(this,"Help here")>whatever</div>
jTip(obj,text){
.
.
$(obj).bind('mouseout', function() {
enabletip=false;
$("#"+theobj.id).unbind('mouseout');
});
}
the following do fine if i have an id on the tag
<div id="div1" onmouseover="jTip(this,"Help here")>whatever</div>
jTip(obj,text){
.
.
$('#'+obj.id).bind('mouseout', function() {
enabletip=false;
$("#"+theobj.id).unbind('mouseout');
});
}
Kind Rgds
Margate