jQuery Simpletip插件使用title属性
问题描述:
如何使 SimpleTip 插件使用每个元素的标题
将工具提示文本应用于一组元素时的属性是什么?
How can you make the SimpleTip plugin use each element's title
attribute for the tooltip text when you're applying it to a group of elements?
$('td[title]').simpletip({
content : << this element's title attribute >>
});
答
我认为这对你有用
$('td[title]').each(function() {
$(this).simpletip({
content : $(this).attr('title')
});
});