how to append or replace the html content by jquery or javascript code example
Example 1: jquery replace element
$("elementsSelector").replaceWith( "<h2>New content</h2>" );
Example 2: jquery replace html
$(element).html("Hello World");
$("elementsSelector").replaceWith( "<h2>New content</h2>" );
$(element).html("Hello World");