Jquery custom attribute
From John Freier
Use a custom attribute on an HTML tag and manipulate it in JQuery.
<script> $(document).ready(function() { $('a').click(function() { var id = $(this).attr('goto'); alert(id); }); }); </script> <a href="#" goto="8">Click Here</a>