jQuery html content of atribute data-x? -
is possible show in qtip2 html content attribute data-x?
jquery-this code not work html in attribute data-x
$('.icon[data-x]').qtip({ content: { attr: 'data-x' }, position: { my: 'bottom center', at: 'top center' } });
html
<span class="icon" href="#" data-x="<strong>html</strong><br>content"></span>
you can this:
var $icon = $('.icon[x]'); $icon.qtip({ content: $icon.attr('x') });
Comments
Post a Comment