I am using this to select all content, but how do I copy it to the clipboard at the same time?
<textarea onfocus="this.select();" onmouseup="return false;" name="tags" cols="50" rows="5">
I've tried the following code, but it didn't work out:
copy_sel.clipboard({
path: 'jquery.clipboard.swf',
copy: function() {
var text = $('textarea#tags').val();
alert('Text copied. Try to paste it now!asdfasdf: '+text);
return $('textarea#tags').val();
}
});