On Sep 22, 6:38 am, Liam Potter <radioactiv...@gmail.com> wrote: > or this > > <a href="#" rel="foobarbaz">show details</a> > > $("a").click(function(){ > var rel = $(this).attr('rel'); > > } > > now you have passed foobarbaz to jquery.
This works only if I don't already need to use "rel". I feel like there _must_ be a better way... Certainly this attribute "abuse" isn't a jQuery best practice? Walter