Monday, April 27, 2009

[jQuery] How to get css object of one element?

Hi all,

 

I wonder how to get css object of ONE single element? Normally, with array of element we can do like this: $("a").css("color").  However, when I go through each element, this is not available: e.g. $("a")[0].css( "color");

 

Anyone knows how to get css properties of one single element please help me?

 

Thanks in advance.

~Ngoc

No comments: