I have an iframe content containing multiple classes.i.e, header, footer
I want to apply css styles for these classes dynamically using jquery,
I try to apply only for header in the following way, but how do i apply for footer(if we have multiple classes) dynamically.
$('#iframe').find('.header').css({
'color': objProp.cssstyles['header']['color'],
'background-color': objProp.cssstyles[pageSection]['background']
});
i have a json data,
var objProp = {
"cssstyles": {
"header": {
"background": "#FFFFFF",
"color": "#959597"
},
"footer": {
"background": "#2b9ef0",
"color": "#f7992d"
}
}
};