Buscar contenidos

lunes, 25 de junio de 2018

Execute document.ready after ajax post



https://stackoverflow.com/questions/5610321/execute-document-ready-after-ajax-post
Combining Ben and fotanus' answers I created the following pattern:
$(document).ready(function () {
    AjaxInit()
});

$(document).ajaxComplete(function () {
    AjaxInit()
});

function AjaxInit() {
    alert("test");
}

No hay comentarios:

Publicar un comentario