I have a large table that one column contains e-mail addresses (+/- 60), and I was told to add an e-mail icon after each address. I have been trying to use anchors
,.href
and .indexof
to select the e-mail links, but have gotten no where (hence no code).
Can I get assistance on how to add <img src="/a/path/email.jpg" alt="e-mail" />
if the link's href
contains a mailto
using vanilla JavaScript, no jQuery.