I suppose you're using prototype, so you just need to get the value of
the select box.

$("id-of-the-element").getValue()



On 28. Dec., 15:04 h., Zhao Yi <[email protected]>
wrote:
> Frederick Cheung wrote:
> > You have to tell remote function what to submit, it's not going to
> > guess for you.
> > This is what the :with option for remote_function is for. Check the
> > docs for link_to_remote for some examples, I've got some extra ones at
> >http://www.spacevatican.org/2008/5/17/with-or-without-you-link_to_rem...
> >   too
>
> > Fred
>
> If I added :with in the select_tag:
>
> :with=>"'project_selection=+'XXX"
>
> what's value should I use for the current selection?
> --
> Posted viahttp://www.ruby-forum.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
-~----------~----~----~----~------~----~------~--~---

Reply via email to