On Wednesday 28 June 2006 14:12, Sam wrote:
> > I'd like to have an onclick triggered by a href, but since href's
> > don't have id's, how do I use the Event.observe syntax with an href?
>
> Just put an ID on the href.  It's allowed.

or, if you feel like finding the element some other way, use that.  You can 
pass a node reference to the $() function and it will return it, id or no.

-Jeremy

-- 
Jeremy Kitchen ++ [EMAIL PROTECTED]

http://www.pirate-party.us/ -- defend your rights

Attachment: pgpkH4cAKbIXp.pgp
Description: PGP signature

_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to