Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • 2
    This does not answer the OP's question. They asked to change only a specific piece of text, while this changes the whole HTML. Commented Nov 3, 2020 at 23:16
  • They also mention that "[it] will be dynamically generated [so they] won't be able to wrap a <span> around the word "FREE"" Commented Nov 3, 2020 at 23:19
  • To clarify, it might have more than one span Commented Nov 3, 2020 at 23:20
  • I can't wrap my head around why they wouldn't be able to wrap a <span> around that value. If it's dynamically generated it means that somehow they are able to reference that piece of text Commented Nov 3, 2020 at 23:20
  • Use querySelectorAll with a for loop or forEach Commented Nov 3, 2020 at 23:21