On Tue, Feb 28, 2012 at 16:50, Dev Guy <devguy.ca@gmail.com> 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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
No comments:
Post a Comment