【发布时间】:2013-09-27 07:31:18
【问题描述】:
我在悬停时有一个禁用的输入字段,我想做一个弹出窗口,说明该字段将被自动填充。
<input type="text" class="dcol" data-toggle="popover" data-content="Required Field with Numeric Input" disabled="disabled" style="background-color:#FFFF66" value="">
这是我的 jQuery,它不起作用。
$('input:disabled').hover(
function(){
alert("hello");
},
function(){
alert("bye");
}
);
谁能建议我如何做到这一点。
【问题讨论】:
-
请参阅stackoverflow.com/questions/9450641/… 以获得解决方案
-
请看一下这个解决方案:stackoverflow.com/a/22867505/8287207