> 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

Reply via email to