Copy Text To Clipboard Plugin – Clipboard.js

Text
File Size: 9.95 KB
Views Total: 1625 views
Last Update:January 01, 1970
Publish Date: January 01, 1970
Official Website: Go to website
License: MIT
Plugin Author:
Demo    Download

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.

Table of Contents

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');
});

Done

List Of Version :

Nola Arney

Nola Arney is a full stack web developer who has Author at jQuerypost. Her ambition for development is only matched by his desire to find the perfect meme for every occasion.