I have some HTML code that I need help with.
<td class="style1 product name" valign="top" nowrap>23$</td>,
<td style="padding-left:10px;" class="product name" width="85%">productY</td>
<td class="style1 product name" valign="top" nowrap>10$</td>,
<td style="padding-left:10px;" class="product name" width="85%">productX</td>
I attempted to use the script below, but it's returning the full HTML instead of just the product names:
document.getElementsByClassName("product name")
Can anyone provide me with guidance on how to modify this script so that it returns an array containing productX and productY?
Your help is greatly appreciated.