I'm looking for a way to get all css styles of an element that are defined in external stylesheet ( style.css ? ) or in HTML ( inline css ).
All solutions i found tend to return [object] so user can apply to another Element.
The following code prints all elements not just those that are defined.
$(this).css("cssText");
Any idea ?