Re: observing collection_select + text_field

Frederick Cheung
Fri, 01 Aug 2008 07:30:07 -0000

On Jul 31, 11:15 pm, Justin To
<rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:
> I read through your article Fred, but I''m still lost trying to
figure
> out how to pass the two values. How do I even access the values?
>
> $(''comment'').serialize()
Will evaluate to
comment=whatever_is_in_the_field_with_that_id
>
> I saw that in your article...so should I give the collection_select and
> text_field id''s and use two of these:
$(''comment'').serialize()?

Yes. One of the examples given was :with =>
"$(''message'').serialize()
+ ''&'' + $(''comment'').serialize()"

Fred

--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com