Copy Text To Clipboard Plugin – Clipboard.js

Demo    Download
Copy Text To Clipboard Plugin – Clipboard
File Size: 9.95 KB
Views Total: 218 views
Last Update:October 2, 2020
Publish Date: September 30, 2020
Official Website: Go to website
License: MIT

Free jQuery Plugins Clipboard.jsBy copying a text to the clipboard is not a hard process. It does not require many steps to copy the input texts to clipboard. It is in easy steps to configure or hundreds of kBs to load but the most of all it does not depend on any of the flash or any of the bloated framework. It covers the div area.

How to use :

1. Add jQuery Library with clipboard.js link :

<script src="/jquery.min.js"></script>
<script src="dist/clipboard.min.js"></script>

2. Add To use the data-clipboard-text data attribute with use data-clipboard-target data attribute :

<div>Hello Copy 1</div>
    <button class="btn" data-clipboard-action="copy" data-clipboard-target="div">Copy </button>

3. Finally, you’ll want to instantiate it with all elements with a class of clipboard:

$( document ).ready(function() {
  var clipboard = new Clipboard('.clipboard');


Nola Arney

Nola Arney is a full stack web developer who has worked at companies of various shapes and sizes, and with technologies just as diverse. Her ambition for development is only matched by his desire to find the perfect meme for every occasion.