title: How to get attributes of container in jquery?
body: <p>How can I get attributes values from an container using jquery ?</p>
  
  <p>For example:</p>
  
  <p>I have container div as:</p>
  
  <pre><code>&lt;div id = "zone-2fPromotion-2f" class = "promotion"&gt;
  </code></pre>
  
  <p>here how can I get attribute id value using jquery and than how can I trim the value to get component information ?</p>
  
  <p>update : how can i get attribute values ?</p>
  
  <p><strong>UPDATE</strong>: If I have multiple components on page with same div information than how would I know what attribute value is for which component ?</p>
  
  <p>Thanks. </p>