[Rails-spinoffs] Event.observe for href
Jeremy Kitchen
kitchen at scriptkitchen.com
Thu Jul 6 16:43:19 GMT 2006
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 ++ kitchen at scriptkitchen.com
http://www.pirate-party.us/ -- defend your rights
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
Url : http://wrath.rubyonrails.org/pipermail/rails-spinoffs/attachments/20060706/3ad496e8/attachment.bin
More information about the Rails-spinoffs
mailing list