This doesn't make any sense. If you're already using jQuery why keep
your handler in the HTML? I'll try to help anyway.

<a ... onclick="showTextNearThisLink(e, 'foobarbaz');">...</a>

function showTextNearThisLink(e, sheez){
   e = jQuery.event.fix(window.event || e);
   // e is your new jQueryized event
};

-- ricardo

On Sep 22, 5:47 pm, WalterGR <walte...@gmail.com> wrote:
> 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

Reply via email to