SHARE
TWEET

webRat

a guest Nov 20th, 2008 565 Never
  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>
RAW Paste Data
Top