Hi, You need to add the hidden_field first without a value and then set the value of it using script tag
NAYAK On Sat, Jan 10, 2009 at 12:05 PM, Zhao Yi <[email protected]>wrote: > > I use this code to get other field value: > > <%= hidden_field_tag 'project_version_select', > $('other_id').getValue()%> > > but I got compile error. How can I get the value? > -- > Posted via http://www.ruby-forum.com/. > > > > -- - NAYAK --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

