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.
Zhao Y. (Guest)
on 2009-01-10 08: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?
Vishwanath N. (Guest)
on 2009-01-10 09: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
<removed_email_address@domain.invalid>wrote:

> >
>


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