如何将工具提示添加到“td”与jQuery的? [英] How to add a Tooltip to a "td" with jquery?

查看:137
本文介绍了如何将工具提示添加到“td”与jQuery的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



有人可以帮助我吗?



我试过了:

  var tTip =Hello world; 
$(this).attr(onmouseover,tip(tTip));

我已经验证我使用td作为this。



**编辑:**我可以通过使用alert命令捕获td元素,并且它可以工作。所以出于某种原因,提示功能不起作用。任何人都知道为什么会这样?

解决方案

您可能想看看 http://bassistance.de/jquery-plugins/jquery-plugin-tooltip/


I need to add a tooltip/alt to a "td" element inside of my tables with jquery.

Can someone help me out?

I tried:

var tTip ="Hello world";
$(this).attr("onmouseover", tip(tTip));

where I have verified that I am using the "td" as "this".

**Edit:**I am able to capture the "td" element through using the "alert" command and it worked. So for some reason the "tip" function doesn't work. Anyone know why this would be?

解决方案

you might want to have a look at http://bassistance.de/jquery-plugins/jquery-plugin-tooltip/

这篇关于如何将工具提示添加到“td”与jQuery的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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