On Tue, Feb 28, 2012 at 16:50, Dev Guy <[email protected]> wrote: > I want to add a dropdown selection box that when an item is selected a > javascript function gets called, is there an easy way to do this with > Rails?
Sure, though it's not Rails-specific; just use the onchange attribute. See: http://www.w3schools.com/jsref/event_onchange.asp for an intro to the concept. -Dave -- Dave Aronson: Available Cleared Ruby on Rails Freelancer (NoVa/DC/Remote) -- see www.DaveAronson.com, and blogs at www.Codosaur.us, www.Dare2XL.com, www.RecruitingRants.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.

