我有了這個功能後才能正常運行:jQuery函數不Ajax調用
$(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調用後問題。 – Khamidulla