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

c# - Move local mssql database to webhosted MYSQL -

string - what is the difference between "some" == "some\0" and strcmp("some","some\0") in c++? -

java - How to pass parameters between Request-Scoped Controllers? -