div onclick 在 IE 8 和 Chrome 中未触发
我的应用程序中有以下 javascript 函数,预计会根据 div 单击执行网格过滤,但我面临的主要问题是 div 单击在 mozilla firefox 中工作正常,但在 IE 8 和 chrome 中则不行,可以任何人都可以帮助解决与此功能相关的问题
$(function(){
$('#FileDiv').live('click', function (e) {
alert(1);
});
});
I have the following javascript function in my application which is expected to perform grid filtering based on the div click, but the major problem i am facing is that the div click is working fine in mozilla firefox , but not in IE 8 and chrome, can anyone help to figure the issue related to this function
$(function(){
$('#FileDiv').live('click', function (e) {
alert(1);
});
});
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
需要 HTML 进行验证,但这就是我遇到问题的地方:
Need the HTML to verify, but here's where I've run into trouble with this: