jQuery Simpletip插件使用title属性 [英] jQuery Simpletip plugin to use the title attribute

查看:76
本文介绍了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')
    });
});

这篇关于jQuery Simpletip插件使用title属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆