diff --git a/jquery.modal.js b/jquery.modal.js index 8e81971..79dd57e 100644 --- a/jquery.modal.js +++ b/jquery.modal.js @@ -106,7 +106,8 @@ $(target).modal(); } else { // AJAX $.get(target, {}, function(html) { - $(html) + $('
') + .html(html) .appendTo('body') .bind('modal:close', function(event, modal) { modal.elm.remove(); }) .modal();