jQuery Copy to Clipboard Plugin – Copy any text to the user site’s clipboard and this plugin that enables you to copy text from any elements to your clipboard.
Copy A Text String From An Input Element | angular-clipboard
How to make use of it:
1. Download and load the jQuery copy to clipboard plugin after the jQuery library and we’re ready to go.
<script src="//code.jquery.com/jquery.min.js"></script> <script src="jquery.copy-to-clipboard.js"></script>
2. Create a ‘copy to clipboard’ button and specify the text to be copied utilizing data-clipboard-text
attribute.
<button class="btn btn-primary" data-clipboard-text="Text to be copied"> Copy text speficied in the data-clipboard-text attribute. </button>
3. Create a ‘copy to clipboard’ button that permits you to copy text from a specified to the clipboard.
<button class="btn btn-primary" data-clipboard-target=".demo"> Copy text from textarea. </button> <textarea class="demo"> Text to be copied. </textarea>
4. Execute the ‘Copy to clipboard’ perform manually.
$('button').click(function(){ $(this).CopyToClipboard(); });
Copy Any Text Into Your Clipboard, Copy to Clipboard Plugin/Github
See Demo And Download
Official Website(milankyncl): Click Here
This superior jQuery/javascript plugin is developed by milankyncl. For extra Advanced Usages, please go to the official website.