我不確定我在這裏找不到什麼。創建新列表項時,列表項不會觸發
當沒有新項目時,我的代碼工作正常。
但是當我編輯列表中單擊將不再觸發。
這是觸發代碼:
$('.coupon_options ul li').on('click', function(){
$selectPromo.removeClass('is_show');
$couponOptionsBox.addClass('active');
$(this).parent().find('li a').removeClass('selected');
$(this).find('a').addClass('selected');
var selected = $(this).data('code');
$couponOptionsBox.html(selected);
});
請幫助。謝謝
請添加html代碼。 – RRK
你是什麼意思'當我編輯'在通過腳本在稍後的點? – Dellirium
最後一個小提琴提供錯誤'$ body is not defined' –