Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
HTML structure for clipboard.js
<div id="clipboard">
<p>Your Text to be copied</p>
</div>
<button class="btn" data-clipborad-action="copy" data-clipboard-target="#clipboard">Copy to Clipboard</button>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment