Forum: Ruby on Rails Dynamically creating textbox in form?

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.
Fcdafe495dccc04d27f6dbbcdf54aecc?d=identicon&s=25 Woei Shyang (generik)
on 2006-01-17 04:36
Hi,

What I'm trying to hack up is a form that has a portion which would
allow me to add "any number" of another set of items.

For instance when specifying a product in a table, and this said product
can have a number of ways which it can be delivered, so I will have a
"Add additional delivery method" javascript link, which when clicked
will create an additional set of textboxes for a new "delivery method".

Is it possible to edit _form.rhtml to achieve this effect once I've
decided on the javascript code that I'd use to achieve this?

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