JSFiddle - React, Tailwind, and code Playground
by NickU
HTML
<div id="product_attributes">
<div class="property">
<span class="name">Product ID:</span>
<span class="value">707</span>
</div>
</div>
JavaScript
$('#product_attributes').click(function(){
$temp = $('<input>');
$('body').append($temp);
$temp.val($(this).parent().find(".value").text()).select();
document.execCommand('copy');
$temp.remove();
});