I want to copy html response in clipboard automatically without clicking on button. I have tried but not succeeded like using javascript
var textarea = $("#Data");
textarea.select();
var successful = document.execCommand('copy');
But it returns false..
How to proceed?
I have read previous posts but it not helpful