- jQuery Code:
- <script>
- $(document).ready(function(){
- $('a.copy').click(function() {
- var data = $(this).parent('.actions').metadata({type:'attr',name:'data'});
- alert(data.project);
- });
- });
- </script>
- CFML CODE:
- <span class="actions" style="display: none;" data="{timelog:1,jobnum:2,project:500,action:1,skill:2,billable:3}">
- <a href="##" class="copy">Click Me!</a>
- </span>
Posted by webRat on Thu 20 Nov 15:53
report abuse | View followups from Dude, homie and Anonymous | download | new post
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.