in jquery, I can easily create a event using attributes. here is the sample code.
$('body').on('mouseenter', '[email]', function(){})
My html tag is something like this.
<span class="zF" email="internal@xyz.com" name="internal">internal</span>
But I don't find any solution how can I do it using javascript.
does anyone know how to add event listener for an attribute using javascript?