getting another dom element value

Think about that: you're trying to write some ruby code (ie that runs on the server) to access something that exists only on the browser. That can't possibly ever work. In a chunk of javascript $F('some_id') will evaluate to the value of that input, $('some_id').setValue(123) sets the value.

Fred