You need to make a ajax request to the server with the selected id from your
html page.
you need to define a callback in the Ajax request for success and then
populate the required fields.
In the server retrieve the related results and render the format.js in the
controller.
I think if you to Agile Web Development book and see how ajax is handled..
You should be able to do this.
Regards,
Naren
On Wed, Dec 16, 2009 at 9:13 PM, INDRANIL MUKHERJEE <
indranil.since87-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> I have a select element where the id field of a db table is populated.
> When I select an id from that select tag I want to show all the
> related names with that id populated in another select tag element in
> the same
> page.please help me.
>
> Thanks & Regards
> INDRANIL MUKHERJEE
>
> --
>
> 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To unsubscribe from this group, send email to
>
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
> .
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>
>
--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.