Good day.
We have code:
<div id="test" style="display:none">text for test copy</div>
<button id="button">copy</button>
For get text in div we use jquery:
$("#button").on("click",function(){
var text = $("#test").html();
alert(text);
});
But i dont know how copy text to clipboard...
Tell me please how copy text (on jquery code it will be text
) to clipboard ?
P.S.: preferably without flash.