use .find in jquery to add text code example Example: jquery get element innertext const copiedText = $('#element').text();