[Rails] Any way to get all records from a partial into a JavaScript array to test?
I have a partial called people that has a radio button called hoh for
head of household. I'm trying to have JavaScript look at each person
and find the one that has hoh=1. This record then has it's name copied
to another field used for mailings. The web page has each record from
the partial with a different id, household_person_1001,
household_person_1030, etc. I can't see a way to get all the person
records into a JavaScript array. Please help.
Bob <bsm2th@gmail.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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home