سؤال

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

هل كانت مفيدة؟

المحلول

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.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top