Jquery tooltips, get data from other attribute -



Jquery tooltips, get data from other attribute -

due page have other jquery plugin utilize title attribute, possible jquery tooltips info other attribute other "title"? http://flowplayer.org/tools/tooltip/index.html#configuration

<span class="something" title="this title" otherattr="this tooltips"></span>

if understand jtools tooltip documentation correctly, if setup tooltip selector other $("[title]") utilize element next trigger tooltip content.

so can this:

$(document).ready(function(){ //place span class tooltip after each element otherattr attribute placing otherattr text within $("[otherattr]").each(function(){ $(this).after('<span class="tooltip">' + $(this).attr("otherattr") + '</span>'); }); //when initate tooltip way utilize .tooltip span after each element. $("[otherattr]").tooltip(); });

jquery tooltip jquery-tooltip

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -