query text of a div as an int and add to it code example Example: jquery get element innertext const copiedText = $('#element').text();