【发布时间】:2014-04-18 03:18:06
【问题描述】:
【问题讨论】:
-
你怎么能说这是
jQuery冲突呢? -
@Dhaval:是的,它是动态的,我检查了检查元素控制台
标签: jquery wordpress jquery-ui woocommerce
【问题讨论】:
jQuery冲突呢?
标签: jquery wordpress jquery-ui woocommerce
您在弹出窗口中的按钮/控件是动态创建的,因此您可以尝试使用.on() 委托click 事件
试试
$(document.body).on("click",".pay_with_amazon > img",function(){
//your rest of code goes here
});
语法:
$(closestparentelement).on('event','targetselector',function(){
// code
});
【讨论】: