[jQuery] Re: how to write selector of Id contains some text
> How can i write selector to retrieve elements (span) that contains > 'PB' as part of id. > My ids are dynamically generated as PB1 PB2 etc. spans that have an ID that starts with PB: $("span[id^='PB']") http://docs.jquery.com/Selectors/attributeStartsWith#attributevalue
[jQuery] Re: how to write selector of Id contains some text
Hi, Try $('#PB'+n) where n is a variable set to 1,2,3,etc. Paul On Dec 12, 11:55 pm, Ashish wrote: > How can i write selector to retrieve elements (span) that contains > 'PB' as part of id. > My ids are dynamically generated as PB1 PB2 etc.