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)

Posted on Feb 25, 2016 11:02 PM

Reply
5 replies

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Copy to Clipboard in safari using jquery or javascript

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.