Unable To Resolve Clipboard Using Zclip - Jquery Zeroclipboard
I am using this for copying text into clipboard.. (NOT GETTING MESSAGE AS 'text Copied in Cliboard' http://www.steamdev.com/zclip/ I have tried like this, but I am unable to get
Solution 1:
You need a copy button. Zclip should be attached to the button which the user clicks to copy the text - not the textarea itself.
Try this:
$(document).ready(function(){
$("#showthisButton").zclip({
path: "js/ZeroClipboard.swf",
copy: function () {
return $('#showthis').val();
}
});
});
And the HTML should be this:
<textarea id="showthis">hi, how are you?</textarea>
<input type="button"id="showthisButton" value="Copy">
If you need any more help, just ask.
Post a Comment for "Unable To Resolve Clipboard Using Zclip - Jquery Zeroclipboard"