How to retrieve CSS style object by CSS class name?
<p>Is it possible to get all properties of a css class associated with an element?<br>
e.g. </p>

<pre><code>.hightligh {
   font-weight: bold;
   border: 1px solid red;
   padding-top:10px;
}
</code></pre>

<p>Lets say the css class "hightlight" is assigned to div element</p>

<pre><code>&lt;div class='highlight'&gt;&lt;/div&gt;
</code></pre>

<p>Now using JavaScript, I need to iterate through all style properties of css class "highlight" associated with the div element.
Basically, I want to treat it as a JavaScript object whose properties can be accessed using iterator or for loop.</p>

<p>Thanks in advance</p>
