Advertisement
codecaine

copy input text to clipboard

Sep 9th, 2021
1,593
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
jQuery 0.19 KB | None | 0 0
  1.     jQuery(document).on('click', '#copy_address', function() {
  2.         console.log('copy address clicked');
  3.         jQuery('#elementID').select();
  4.         document.execCommand('copy');
  5.     });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement