Wednesday, July 2, 2014

jQuery not working after the content is loaded through AJAX



$(document) refers to the whole document.
$(document).on('click', "#click", function () {
    $('#click').css({
        "background-color": "#fff",
        "color": "#000",
        "cursor": "inherit"
    }).text("Open this window again and this message will still be here.");
    return false;
});


No comments:

Post a Comment