Can't get ZClip to work
问题 I know it works even on this site but only when I trigger it via the h1 element, and I need to trigger it via an image (representing copy) but when I try it simply won't work. Here's my Javascript: $('#copyTxt').click(function(){ alert($('#Txt2Copy').text()); $(this).zclip({ path: '/scripts/js/ZeroClipboard.swf', copy: $('#Txt2Copy').text(), afterCopy: function(){ alert($('#Txt2Copy').text() + " was copied to clipboard"); } }); }); The alert was just for me to make sure it reaches and it does