title: How to get css property from class using jquery
body: <p>How can i get the 'color' property from test class but should not use .addClass and .css function.</p>
  
  <pre><code>.test {
    color: red;
    margin: 10px 10px 10px 10px;
  }
  </code></pre>
  
  <p>I need to add color property for other class.something like following</p>
  
  <pre><code>&lt;div class="getproperty"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>How can i get only color property from test class to use getproperty class.</p>
  
  <h2>Update :</h2>
  
  <p>I want to get the color property that is for the <code>class:test</code> and to use the obtained color to another class named as <code>getproperty</code>. </p>
  
  <p>How can i do this in jquery ?</p>