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

Popular posts from this blog

c++ - Linux and clipboard -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -