Forum: Ruby on Rails How can I get other field value?

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.
7fbd0e99b27064b14793f028022974e5?d=identicon&s=25 Zhao Yi (youhaodeyi)
on 2009-01-10 07:35
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?
9cf6e7f81d4339295b86e5fb7d7df49b?d=identicon&s=25 Vishwanath Nayak (nayak)
on 2009-01-10 08:15
(Received via mailing list)
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
<rails-mailing-list@andreas-s.net>wrote:

> >
>


--
- NAYAK
This topic is locked and can not be replied to.