Want more features on Pastebin? Sign Up, it's FREE!
Guest

webRat

By: a guest on Nov 20th, 2008  |  syntax: None  |  size: 0.38 KB  |  views: 548  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. jQuery Code:
  2. <script>
  3. $(document).ready(function(){
  4.         $('a.copy').click(function() {
  5.                 var data = $(this).parent('.actions').metadata({type:'attr',name:'data'});
  6.                 alert(data.project);
  7.         });
  8. });
  9. </script>
  10.  
  11. CFML CODE:
  12. <span class="actions" style="display: none;" data="{timelog:1,jobnum:2,project:500,action:1,skill:2,billable:3}">
  13. <a href="##" class="copy">Click Me!</a>
  14. </span>
clone this paste RAW Paste Data