How to get portion of the attribute value using jquery
Posted
by Rachel
on Stack Overflow
See other posts from Stack Overflow
or by Rachel
Published on 2010-05-05T11:26:35Z
Indexed on
2010/05/05
11:48 UTC
Read the original article
Hit count: 161
jQuery
|JavaScript
I have attribute value as:
<div id = "zone-3a-2f-2f-2fPortal-2fPages-2fHome-2fZones-2fLeft-2f-7ccomponent-3a-2f-2f-2fSpm-2fComponents-2fPromotion-2f" class = "promotion">
Now I want to get only portion of it, say Promotion
and its value 2f
, how can I get this using jquery ? Do we have built in function for it ?
© Stack Overflow or respective owner