add text in div jquery code example
Example 1: jquery append text to div
$( "#divId" ).append( "<p>Test</p>" );
Example 2: jquery get element innertext
const copiedText = $('#element').text();
$( "#divId" ).append( "<p>Test</p>" );
const copiedText = $('#element').text();