How to get attributes of container in jquery ?
Posted
by Rachel
on Stack Overflow
See other posts from Stack Overflow
or by Rachel
Published on 2010-05-04T20:02:28Z
Indexed on
2010/05/04
20:08 UTC
Read the original article
Hit count: 165
jQuery
|JavaScript
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.
© Stack Overflow or respective owner