I want to get the favoriteid
value.
<td class="favoriteRow" style="">
<img src="/images/starGold.png" loading="lazy" favoriteid="bitcoin">
</td>
This is what I tried but got back undefined
.
console.log(this.childNodes[0]['favoriteid'])
The console.log(this) outputs:
<td class="favoriteRow" style="">
<img src="/images/starGold.png" loading="lazy" favoriteid="bitcoin">
</td>