Jquery/HTML5 Text copy after click element? I have text, and inside is span with name "copy" and i want to copy value of .copy span after click.
This is my text:
<span class="copy">Donec laoreet interdum</span> lectus, vel pharetra ligula mollis sit amet. Quisque in nibh id felis scelerisque.
this is my jquery code:
$(function () {
$('.copy').click(function(){
// copy action, ?
});
});
after click i want copy "Donec laoreet interdum" to clipboard. please help, best regards!