[Fixed]-Django Insert html into div using jquery .ajax() on button click

1👍

Try replacing:

ajaxDiv.replaceWith(ajaxDiv.html(data));

with:

$('#ajaxContent').html(data);

Leave a comment