On Aug 25, 2011, at 12:26 AM, Bob Smith wrote:

By the way, this is what I ended up with..

        var hoh = $$('input.hoh:checked');
        hoh.each(function(elm){
                {
                elm.up(1).down('input.last_name').value =
$F('household_last_name')
                elm.up(1).down('input.first_name').value =
$F('household_first_name')
                elm.up(1).down('input.middle').value = $F('household_middle')
                }
        })
}

it turns out that there were a few partials, etc.. between the cells I
was after, so the up and down calls were useless. This just got the
values needed with $f and out them in local cells that I could access.

Excellent. Now one tiny refinement to recommend: replace value = val with setValue(val). It's just a little bit safer cross-browser.

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.

Reply via email to