innerhtml in div jquery code example
Example 1: jquery replace innerhtml
$("#myID").html("<div>New inner html</div>"); //replace element innerHTML in jQuery
Example 2: jquery get element innertext
const copiedText = $('#element').text();
$("#myID").html("<div>New inner html</div>"); //replace element innerHTML in jQuery
const copiedText = $('#element').text();