replace html jquery code example
Example 1: jquery replace element
$("elementsSelector").replaceWith( "<h2>New content</h2>" );
Example 2: jquery replace html
$(element).html("Hello World");
Example 3: jqueryreplace content of div
$('#content-container').html(linkText);
Example 4: inner html jquery
$('#selector').text('Your text here');