0
jQuery的Jquery的单击事件不触发对相对输入
$(document).on("click","[type=text]",function(event) {
alert('test');
});
CSS
.noWorking:focus{
z-index:100;
position:relative;
outline:none;
box-shadow:0 0 0 1000px rgba(0,0,0,.2);
}
我需要一个z-index:100;
就所有其他元素之上的阴影。我还需要点击事件来处理我的输入。在Firefox中,只有双击消息事件。
https://jsfiddle.net/oz68Lgcd/
为什么在相对位置输入火狐火灾事件仅双击?
我得到的小提琴两个输入端的警报。我正在使用Chrome。 – Barmar
我正在使用Firefox。但是,是的,我只是检查和铬工程。 –
如果您使用普通的事件绑定而不是委托,它会工作吗? – Barmar