On Jan 16, 2011, at 11:24 PM, Me wrote:
Actually what I posted is what rails produces, I copied the
javascript from the page source. I was more interested how to get
the div id value into the string, is it a quote issue?
Oh, sorry I missed that. If you have Prototype in your page, then the
syntax to get a form field's value is
$F('theIdOfTheField')
The quotes look fine. If you don't have Prototype, then the syntax
would be something like
getElementById('theIdOfTheField').value
Walter
--
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.