I have an AJAX response that contains some HTML, including elements.
This HTML should replace an existing element, but when I use:
It will return a string!!
$.get("ajax.php") .success(function(returningHtmlString) { $(element).replaceWith(returningHtmlString); });