Jquery Click事件问题 [英] Jquery Click event Problem
本文介绍了Jquery Click事件问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
亲爱的专家,
我遇到麻烦...
我没有当我动态打印链接时获取jquery点击事件...
但是在Harcoded的情况下,它工作正常.....
请参阅JsFiddle ...
jsFiddle
请帮助我..
谢谢
Dileep
Dear Experts,
I am in a Trouble...
I didn't get the jquery click event when i dynamically print the link...
But in the case of Harcoded , it is working fine.....
Please see the JsFiddle...
jsFiddle
Please Help me..
Thanks
Dileep
推荐答案
你好,
尝试使用这样的实时函数:
Hello,
try using live function like this :
( 。add_to_cart_button)。live( 点击,函数(e){
alert( Hello world);
});
(".add_to_cart_button").live("click", function (e) { alert("Hello world"); });
试试这个。
try this.
这篇关于Jquery Click事件问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文