Copy text from attribute
<!-- Trigger -->
<button class="btn" data-value="Heya!">Copy</button>
Copy text from another element
<!-- Target -->
<input id="foo" value="https://git.io/vn3cM">
<!-- Trigger -->
<button class="btn" data-target="foo">Copy</button>
Cut text from another element
<!-- Target -->
<textarea id="bar">clipboard.js rocks!</textarea>
<!-- Trigger -->
<button class="btn" data-action="cut" data-target="bar">
Copy
</button>