JSFiddle - React, Tailwind, and code Playground
by gchoken
HTML
Think anchor tags are created dynamically
--------------------------
<br/>
<a class="a">a</a>
<br/>
<br/>
<a class="a">b</a>
<span>here we go<span>
CSS
span{display:none;}
JavaScript
$(function(){
$('.a').each(function(){
var ele = $(this);
$(document).on(
{
mouseenter: function(event)
{
ele.text($('span').text());
},
mouseleave: function()
{
//stuff to do on mouseleave
}
}
,ele,{'foo':ele});
});
});