I would like to get the currentStyle/computedStyle object and I dont want to manually check for the type of browser. (I wanted to get rid of cross-browser handling that is why I came to Jquery).
Actually I want the style object returning all the style-property: value map.
Please help.
I would like to get the currentStyle/computedStyle object and I dont want to manually
Share
Well, there is a soultion for a similiar problem offered by Keith Bentrup: jQuery CSS plugin that returns computed style of element to pseudo clone that element?
He used a list of attributes from Firebug and created a computed style object with jQuery to be able to clone styles from one object to another:
This seems to do exactly what you are looking for.
There are also a couple of plugins for that: