Forum: Ruby on Rails Any way to add 'onchange' to a 'select' helper?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
450046d5f684ae5001c0b1a079d447d4?d=identicon&s=25 Sean Schertell (Guest)
on 2005-12-22 04:42
I basically have a select menu with two options:
-- Leave password unchanged --
-- Enter new password below  --

I want my form to use a sexy prototype effect to SlideDown the text
field when the second option is selected.  That way the user isn't
confused by a blank password field when they've selected to leave the
password unchanged.

Can I do this with Rails's 'select' helper?  Is there something like
':onchange => foobar' that I can use?  Or do I need to write out my own
select tag for this?

Thanks!  - Sean
This topic is locked and can not be replied to.