Leonel *.* wrote in post #955837: [...] > Yes, I know JavaScript. Great.
> I just thought there might be some magic Rails > way to accomplish that task. But if there is not, its ok, I'll just try > something else. Well, if you just want to set the onclick event, you could use the html_options hash on the form helper, which would set the onclick attribute on the <form> tag just like any other HTML option. > > I've been using jQuery but I notice lots of Rails developers use > Prototype, is there a special reason for this? Prototype was included with Rails up through version 2.3.x. jQuery hasn't been around as long. I haven't done a heck of a lot of work with either, but it looks like Prototype may be a better designed framework in general, while jQuery has a wonderful DOM querying mechanism. Best, -- Marnen Laibow-Koser http://www.marnen.org [email protected] -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

