On Sep 22, 4:35 pm, Ricardo wrote:
> This doesn't make any sense. If you're already using jQuery why keep
> your handler in the HTML?
Because I need to pass additional information to the event handler in
a clean way. (i.e. rather than hacks using various attributes on the
anchor.) Is there a
On Sep 22, 6:38 am, Liam Potter wrote:
> or this
>
> show details
>
> $("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
ed to send
additional information ('foobarbaz' above) to the event handler.
Thanks,
WalterGR
3 matches
Mail list logo