retrieve text value of tag y using jquery code example Example: jquery get element innertext const copiedText = $('#element').text();