I have some links and a div in my web page.On mouse over the link I need to display the div just bellow the link.How to do it so that on mouse hovering any link the div will display just bellow that link only(I mean like a tooltip)?
+1
A:
Steps to do
- Add the tooltip div with absolute position and hide it.
- Bind hover event to andchor tags.
- Get element position using
.offset()
method - Set the top and left position of the tooltip div with the values from
.offset().top
and.offset().left
rahul
2010-10-14 11:26:58