Link to home
Start Free TrialLog in
Avatar of MJ
MJFlag for United States of America

asked on

Get Value of multiple Span tags with ID ending in "ProductLabelForDepositAppId" using JavaScript?

Using JavaScript only, How would I get the values of Premier Checking, Choice Money Market Savings and Classic Savings if these are in the page? There will always be at least one value and up to 3 possibly.  The ID for the spans will always end in ProductLabelForDepositAppId
<span id="j_id14:0:ProductLabelForDepositAppId" style="font-weight:bold;">Premier Checking</span>

<span id="j_id14:1:ProductLabelForDepositAppId" style="font-weight:bold;">Choice Money Market Savings</span>


<span id="j_id14:2:ProductLabelForDepositAppId" style="font-weight:bold;">Classic Savings</span>

Open in new window

Thanks!
ASKER CERTIFIED SOLUTION
Avatar of leakim971
leakim971
Flag of Guadeloupe image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of MJ

ASKER

Thank you very much!