I am looking for a function that gives me the JSON
of all the styles that are applied on the given element in jquery
I have tried this but doesn't seem to work on Firefox
Looking for a function that takes an element as an input and returns the JSON
Required out put is
{
'sidebar' : {
'background-color' : '#000000',
'width' : 'auto',
},
'content-area' : {
'color' : '#000000',
'width' : '50%',
}
}