2014-03-13 55 views
0

我只結帳頁面jQuery的衝突 - >查看&付款jQuery的V2.1.0衝突不點擊按鈕

可以與亞馬遜按鈕site

收費看到彈出新窗口。作爲CART頁面已經工作。

enter image description here

建議我妥善解決。

謝謝。

+0

你怎麼能說這是一個'jQuery'衝突? –

+0

@Dhaval:是的,它動態來了我檢查檢查元素控制檯 – Ravi

+0

看到我的答案在下面! –

回答

0

你的按鈕/控件在彈出的是動態創建的,所以你可以嘗試委託使用.on()

click事件嘗試

$(document.body).on("click",".pay_with_amazon > img",function(){ 
    //your rest of code goes here 
}); 

語法:

$(closestparentelement).on('event','targetselector',function(){ 
    // code 
});