jquery copy to clipboard Edit

Murugan Andezuthu Dharmaratnam | 23 September 2020 | 2226

There is no option to copy text directly to the clipboard. The sample code below will help to copy text to the clipboard.


function copyToClipboard(text) {
       var $temp = $("<input>");

you can pass the text as a parameter to the copyToClipboard function and the text will get copied to the clipboard.