SHARE
TWEET

Untitled

a guest Jun 16th, 2019 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <div class="modal-body">
  2.     <p class="m-b-lg">...</p>
  3.     <div class="text-right fz-sm">
  4.         <a href="#" data-action="copy-link">Copy link</a>
  5.     </div>
  6.     <pre>
  7.         Lorem ipsum...
  8.     </pre>
  9. </div>
  10.      
  11. $('[data-action="copy-link"]').on('click', function(event) {
  12.     var code = $(this).find('pre').css('color', 'red');
  13. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top