JQuery Tooltip悬停在单选按钮上 [英] JQuery Tooltip Hover on Radio Button
本文介绍了JQuery Tooltip悬停在单选按钮上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我希望通过单选按钮将鼠标悬停在工具提示上。所以我试图使用这个插件:醉意。所以这里是我的html:
< label>< input type =radioname =optionsvalue =1 class =requiredid =option1>选项1< /标签>
然后我尝试了这样的事情:
$(#option1)。tipsy({fallback:test});
但是当我在单选按钮上方盘旋时,什么也没有出现。为什么没有任何东西出现,我该如何让它工作? c $ c>到您的输入
。
< input type = radioname =optionsvalue =1class =requiredid =option1title =MyText>
I want to have a tooltip show on hover over a radio button. So I'm trying to use this plugin: tipsy. So here's my html:
<label><input type="radio" name="options" value="1" class="required" id="option1"> Option1</label>
And then I tried something like this:
$("#option1").tipsy({fallback: "test" });
But when i hovered over the radio button, nothing appeared. Why isn't anything appearing and how do I make it work?
解决方案
Add title
to your input
.
<input type="radio" name="options" value="1" class="required" id="option1" title="MyText">
这篇关于JQuery Tooltip悬停在单选按钮上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文