jQuery Plugin For Text Copy/Paste/Select – jQlipboard

Text
Demo    Download
File Size: 3.04 KB
Views Total: 62 views
Last Update:November 24, 2020
Publish Date: November 15, 2020
Official Website: Go to website
License: MIT

A Free jQuery Plugin with Copy/Paste/Select – jQlipboard.js is copy your text and past for makes accessing the clipboard much easier. This plugin also has features that make it usable across most if not all browsers. This clipboard jQuery plugin is use for text copy to paste, and select (highlight) events on the web page.

How to used :

1. Load the main script JQlipboard.js after jQuery.

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

2. Copy any string to the clipboard.

$.copy("Any String Here");

3. Or copy text within a container element.

<div id="demo">This text will be coppied</div>

4. Or copy text you typed in a text field.

<!-- Input Field -->
<input type="text" id="demo" />

<!-- Or Textarea -->
<textarea id="demo">
  ...
</textarea>

<!-- Copy Button -->
<button id="myBtn">Click Me To Copy</button>
$("#myBtn").click(function(){
  var str = $("#demo").val();
  $.copy(str)
});

Done


Mady

Mady Schaferhoff is an expert jQuery script at jQuerypost. He offers web development services to clients globally. He also loves sharing Html,CSS, jQuery knowledge through blog posts like this one.