Here’s how you get one css attribute using jQuery:
$('someObject').css('attribute')
How do you get them all? (without specifying and preferably in the following format so it can be reapplied with jQuery later):
cssObj = {
'overflow':'hidden',
'height':'100%',
'position':'absolute',
}
Thanks!!
EDIT
The methods I’m trying to get are declared in a style sheet (they are not inline). Sorry for not specifying.
What about something like this:
jQuery CSS plugin that returns computed style of element to pseudo clone that element?
It is ugly, but it appeared to work for the poster…
This also may be of interest:
https://developer.mozilla.org/en/DOM:window.getComputedStyle