How to get portion of the attribute value using jquery
<p>I have attribute value as:</p>

<pre><code>&lt;div id = "2fComponents-2fPromotion-2f" class = "promotion"&gt;
</code></pre>

<p>Now I want to get only portion of it, say <code>Promotion</code> and its value <code>2f</code>, how can I get this using jquery ? Do we have built in function for it ?</p>
