Copy to Clipboard in safari using jquery or javascript
I need to copy a text to clipboard on clicking a button using either javascript or jquery.
I found many options for doing this in other browsers..IE, Chrome, Firefox. But couldn't achieve in Safari Version 9.0.
I tried document.execCommand('select') and document.execCommand('copy'). But the latter returned false. So copy didn't work.
iMac, OS X El Capitan (10.11)