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>