If the element you are analyzing does not have any field, border, or is not defined at all, you cannot return it. At the tops you can get a βcar,β which is usually the default.
In your example, I see that you have margT as a variable. Not sure if I'm trying to get margin. If in this case you should use .css('margin-top') .
You are also trying to get the styling from "img", which will result (if you have more than one) in the array.
What you need to do is use the .each() jquery method.
For example:
jQuery('img').each(function() {
JosΓ© P. Airosa Sep 14 '11 at 17:36 2011-09-14 17:36
source share