I have the following button:
<button class="sz-grid-dropdown sz-grid-button" data-qa="sz-dropdown">SIZE 10</button>
I need to replace it on page load with:
<button class="sz-grid-dropdown sz-grid-button" data-qa="sz-dropdown"><font color="red">SIZE 10</font></button>
The other sizes look the same, the only thing that's different is the text between the button tags: US 9, US 10, etc.
I essentially need to replace "SIZE 10" with "<font color="red">SIZE 10</font>
" for Macro automation purposes on an existing website. I'm going to have different sizes be different colors.
I wish I could style it with a styling extension but all the button tags have nothing relating to the size.
A javascript snippet or jQuery snippet would be appreciated, I'll then have to find how to make it load onto the site on page load so it changes the text color. But that part is easier.