How to get attributes of container in jquery ?
- by Rachel
How can I get attributes values from an container using jquery ?
For example:
I have container div as:
div id = "zone-3a-2f-2f-2fPortal-2fPages-2fHome-2fZones-2fLeft-2f-7ccomponent-3a-2f-2f-2fSpm-2fComponents-2fPromotion-2f" class = "promotion"
here how can I get attribute id value using jquery and than how can I trim the value to get component information ?
Thanks.