Copy to clipboard jQuery plugin.

Overview

jQuery - Copy to clipboard Plugin

jQuery Copy to clipboard plugin - copy any text to the user site's clipboard. Operates on the basis of creating hidden text field and executing "copy" command.

You can see DEMO page.

Usage

1. Including jQuery

Be sure you have jQuery included in your website.

<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.js"></script>

2. Include CopyToClipboard jQuery extension

<script type="text/javascript" src="https://milankyncl.github.io/jquery-copy-to-clipboard/jquery.copy-to-clipboard.js"></script>

3. Run CopyToClipboard function

Works on any kind of element.

There are three ways to use this plugin.

    1. Apply CopyToClipboard plugin with a JS Code.
$(document).ready(function() {
  $('.element').CopyToClipboard();
});
    1. Add data-clipboard attribute to any HTML element, executes on click.
<button data-clipboard-text="Text to copy.">Copy me!</button>
    1. or with jQuery selector...
<button data-clipboard-target=".element">Copy another element's value!</button>

4. More information

jQuery CopyToClipboard is based on creating hidden text field, inserting text and executing "copy" command.

You might also like...

Piccloud is a full-stack (Angular & Spring Boot) online image clipboard that lets you share images over the internet by generating a unique URL. Others can access the image via this URL.

Piccloud Piccloud is a full-stack application built with Angular & Spring Boot. It is an online image clipboard that lets you share images over the in

Dec 15, 2022

Emoji - Use emoji names instead of Unicode strings. Copy-pasting emoji sucks.

Grammy Emoji Adds emoji parsing for grammY. Check out the official documentation for this plugin. While this draft is working, we still do not recomme

Sep 5, 2022

NoPrint.js - Disable Print, Screenshot, Copy & Paste in HTML by JavaScript.

NoPrint.js Disable Print, Screenshot, Copy & Paste in HTML by JavaScript. NoPrint.js is a small and neat open source JS library that disables print, s

Dec 26, 2022

A simple copy of the Reddit app using it's API in React Native

A simple copy of the Reddit app using it's API in React Native

A simple copy of the Reddit app using it's API in React Native

Nov 12, 2022

A collection of scripts to build offline documentation for your favourite frameworks/libraries. Simply search, copy/paste the commands and enjoy.

Offline-docs A collection of scripts to build offline documentation for your favourite frameworks/libraries. Simply search, copy/paste the commands an

Dec 24, 2022

Browser extension to copy the page title and URL as rich text.

Browser extension to copy the page title and URL as rich text.

Copy Rich Link Browser extension to copy the page title and URL as rich text. Useful for pasting links to Slack, Google Docs, etc. Usage Install Insta

Dec 17, 2022

Copy/paste detecting GitHub Action for programming source code (jscpd)

Copy/paste detecting GitHub Action for programming source code (jscpd)

dry-code Copy/paste detecting GitHub Action for programming source code with jscpd Action inputs Action input Description Default Value Required optio

Dec 14, 2022

🫥 Copy repository without the git information for self-managed gitlab, very fast.

🫥 Copy repository without the git information for self-managed gitlab, very fast.

English | 简体中文 degitlab 🫥 degitlab - de-git-lab Copy repository without the git information for self-managed gitlab, very fast. Why? In self-managed

Oct 16, 2022

Create a deep copy of a set of matched elements with the dynamic state of all form elements copied to the cloned elements.

jq-deepest-copy FUNCTION: Create a deep copy of a set of matched elements while preserving the dynamic state of any matched form elements. Example Use

Oct 28, 2022
Releases(v1.0)
Owner
Milan Kyncl
Full-stack web-developer, dev-ops engineer. Mainly capable of: Node.js, React, Go, PHP development
Milan Kyncl
blog with angular made in sass and firebase auth with google, facebook and github also you can copy to clipboard

BlogAngular This project was generated with Angular CLI version 14.1.2. Development server Run ng serve for a dev server. Navigate to http://localhost

John Gualteros 1 Oct 2, 2022
Clipboard extention for jQuery

jQlipboard jQlipboard is a jQuery extension that makes accessing the clipboard much easier. This plugin also has features that make it usable across a

null 5 Aug 9, 2021
Obsidian plugin: copy document as HTML, including images

Copy as HTML Plugin for Obsidian that copies the current document to the clipboard, so it can be pasted into HTML aware application like gmail. This p

mvdkwast 18 Dec 22, 2022
A simple way to share files and clipboard within a local network.

Shortcut Simple way to share files and clipboard with devices within a local network. Usage Run the ./shortcut executable. A browser window will be op

Dhamith Hewamullage 17 Mar 13, 2022
Chrome Extension that extracts metroretro.io JSON to your clipboard as an HTML list

retro-clippy Chrome Extension that extracts metroretro.io JSON to your clipboard as an HTML list Installation Clone repo and run yarn to install depen

Sherman Hui 2 Apr 11, 2022
A tool for collecting data and access camera, microphone and location and clipboard via link.

Snow Build malicious links. A tool for collecting data and access camera, microphone and location and clipboard via link.

Msf 14 Dec 12, 2022
A Virtual Interactive Keyboard which replicates every key you press and a Text-Area in which everything is written and can be copied to the clipboard with a click of a button.

A Virtual Interactive Keyboard which replicates every key you press and a Text-Area in which everything is written and can be copied to the clipboard with a click of a button.

Devang Joshi 1 Mar 1, 2021
cross-platform Deno library for writing and reading clipboard.

deno-clippy This is cross-platform Deno library for writing and reading clipboard. You can read from/write image and text. This library uses Rust's ar

skanehira 34 Dec 3, 2022
Manipulate Clipboard in Node.js via native API.

@napi-rs/clipboard Manipulate Clipboard in Node.js via native API. It's a Node.js binding for 1Password/aboard API Text import { Clipboard } from '@na

LongYinan 64 Nov 7, 2022
Monitor incoming SMS for SMS-codes, add them to clipboard

MacOs only. Monitors SMS for codes, adds them to the clipboard. Monitors Messages SQLite file ~/Library/Messages/chat.db for new messages, uses regexp

Ilya Kantor 3 Sep 23, 2022