tags:

views:

75

answers:

2
  • I have a tooltip attached to a div.
  • the div is also draggable
  • on dragstop event i need to change the value of the tooltip. However, since its on dragstop the mouse is still over the div and consequently the title="".

I was wondering if anyone knew a way to accomplish this?

  • Shawn
+1  A: 

When are you invoking your tooltip ? on hover? can you give sample?

Umesh
this should be posted as comment to original question, not as an answer to it
n1313
Sorry to ask .. How can i add comment to the original question?
Umesh
Hmmm, I am not quite used to local rules, too. It seems that you need to gain some reputation to be able to comment questions. Huh. Disregard my comment, then :)
n1313
wait, you can't comment if you have low rep? that's stupid. there's no "add comment" link below the question tags?
geowa4
I think it's set to 50 rep before you can comment on the original post
fudgey
Here I'll bump you so you can get over 50 :P
fudgey
Oh man. Thanks. Got the "add comment link" :)
Umesh
A: 

I'm guessing you are saying the tooltip remains open while you are dragging the div around?

If you are using the jQuery tooltip plugin... it makes a div with an ID of "tooltip", so you could just access the tooltip directly to change the data.

$('#tooltip').append('new data');

I haven't tested it but I don't think the title will update with this new data once you are no longer hovering over the tooltip.

fudgey
Why the downvote? This method will work if that is what the poster is asking.
fudgey