To get the offset values from jquery -
How do I get an image offset value, which is enclosed in a table I table has too many images I While hovering in I want to get offset - left, right, top, bottom for all the image. I need it jquery
Thank you, Praveen Jay
var elem = $ ("your_element"); Var offset = elem.offset (); Var leftValue = offset.left; Var topValue = offset.top;
Add the width and height values to the left and above to get the lower values.
Comments
Post a Comment