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