I need to change the DOM dynamically. I want to access the 'text-align' and the 'line-height' properties.
for example:
<p style="line-height:1.0;text-align:justify;">
I need to access all the style attributes in the DOM and go through each 'text-align' and 'line-height' properties and change their values. How to access these properties. Actually what I need to do is go through these two properties and change the text-align to left and change the line-height to 1.5 if it's less than 1.5
Thank you so much inadvance.
$("SELECTOR").css('PROPERTY');?