Copy to Clipboard Plugin For jQuery | copyToClipboard

copyToClipboard is a simple plugin for copying the content of a container to the clipboard using jQuery. jQuery copy to clipboard plugin that enables the button to copy any text within the container element to the user’s clipboard.

copy to clipboard jquery, javascript copy to clipboard without input, copy to clipboard jquery, copy to clipboard javascript, jquery copy to clipboard div

Copy to Clipboard jQuery Plugin | CTCP

How to make use of it:

1. Load the primary JavaScript file copyToClipboard.js after jQuery.

<script src="/path/to/cdn/jquery.slim.min.js"></script>
<script src="/path/to/src/copyToClipboard.js"></script>

2. Attach the copy to clipboard to your component whose content material will probably be copyied to the clipboard.

<pre class="test">
  ... Content Here ...

3. Customize the textual content to be displayed within the copy to clipboard button.

    buttonText: 'Copy (Without Callback)',

4. Trigger a callback function and return the info you simply copied.

    buttonText: 'Copy (With Callback)',
    callback: function(data) {

5. Apply your individual styles to the copy to clipboard button.

.copyToClipboard-button {
  background: black;
  position: absolute;
  right: 0px;
  top: 0px;
  display: none;
  cursor: pointer;
  padding: 5px;

Copy To Clipboard Button Plugin, copyToClipboard Github, html copy to clipboard without javascript, textarea copy to clipboard

See Demo And Download

Official Website(BurosystemhausSchafer): Click Here

This superior jQuery/javascript plugin is developed by BurosystemhausSchafer. For extra Advanced Usages, please go to the official website.

Related Posts


CSS Layout Components Horizontal/Vertical Stack | HStack and VStack

HStack and VStack in CSS – CSS layout components that (basically) stack anything horizontally and vertically. A pure CSS library that makes it easy to stack elements…


How to Add Floating Whatsapp Chat Button In HTML | venom-button

Venom Button is a very simple plugin for the jQuery floating WhatsApp button. Adds a floating button to your site that calls WhatsApp Click to Chat API. It will automatically start the WhatsApp…


Interactive Data Table Generator with JS/jQuery and JSON | Tabulator

Tabulator allows you to create interactive tables in seconds from any HTML Table, JavaScript array, AJAX data source, or JSON format data. Just include the library in your…


Simple Alert, Confirm, Prompt Popup Using Vanilla JavaScript Library | attention.js

JavaScript provides various built-in functionality to display popup messages for different purposes. Attention JS is a vanillaJS plugin used to create a custom alert, confirm, or Prompt…


Bootstrap 4 Sidebar Menu Responsive Template | MDB

Bootstrap Side Navbar – Responsive sidebar template based on the Bootstrap 4 framework. An easy-to-use, totally responsive, Google Material Design impressed aspect navigation for modern web app…


Lightweight Bootstrap 4 Toast Notification Plugin | BS4 Advanced Toast

A lightweight Bootstrap 4 Toast Notification plugin integrated with JS/jQuery. bs4-toast.js is a JavaScript library that enhances the native Bootstrap toast component with icons, buttons, callbacks, and…

Leave a Reply

Your email address will not be published. Required fields are marked *