【发布时间】:2014-01-24 14:16:50
【问题描述】:
我有这个功能:
$(document).ready(function() {
$('.post_button, .btn_favorite').click(function() {
//Fade in the Popup
$('.login_modal_message').fadeIn(500);
// Add the mask to body
$('body').append('<div class="overlay"></div>');
$('.overlay').fadeIn(300);
return false;
});
我的页面加载带有收藏按钮的内容,但在 Ajax 调用并生成额外的新内容后,当您单击新内容的按钮时,该功能不起作用。有什么不对的地方?
【问题讨论】:
-
你的 html 和 ajax 在你的问题中调用。
标签: javascript jquery ajax html