Question

My zeroclipboard.js is working nicely and easily copy the text to clipboard without ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js

But if I add the script to my website, it no longer works

Here is my demo coding:

Without the script

With the script

Was it helpful?

Solution

That's irrelevant. The problem here is not jQuery, but rather the fact that you forget to upload the ZeroClipboard.swf file to the server.

enter image description here

Either that, or you uploaded it to an unconventional path and you forget to set the moviePath on the ZeroClipboard object accordingly.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top