how to get the text of the div using jquery code example Example: jquery get element innertext const copiedText = $('#element').text();