JSFiddle - React, Tailwind, and code Playground
HTML
<script src="http://cdn.strategiqcommerce.com/ajax/libs/zclip/1.1.1/jquery.zclip.min.js"></script>
<a href="#" id="copy-description">Copy</a>
<p id="description">pppppp</p>
JavaScript
$(document).ready(function(){
$('a#copy-description').zclip({
path:'http://www.steamdev.com/zclip/js/ZeroClipboard.swf',
copy:$('p#description').text();
});
// The link with ID "copy-description" will copy
// the text of the paragraph with ID "description"
$('a#copy-dynamic').zclip({
path:'http://www.steamdev.com/zclip/js/ZeroClipboard.swf',
copy:function(){return $('input#dynamic').val();}
});
// The link with ID "copy-dynamic" will copy the current value
// of a dynamically changing input with the ID "dynamic"
});