My question is based on SO question Bootstrap tooltips not working
So, the solution is to use: jQuery:
$("[rel='tooltip']").tooltip();
html:
<a href="#" rel="tooltip" title="A nice tooltip">test</a>
And that works perfect.
My question is: what if I want to use a <span>
tag instead of <a>
.
Should it be <span rel="tooltip" title="A nice tooltip">Hover on me</span>
?
It works perfectly but I see the rel
attribute is used for a tags.
So, what's the correct solution?