I'm sure this is a basic question... I have a nested form where the nested object contains a text field. There is a link_to_function in the form that calls some javascript. I want to pass the javascript function the value of a hidden field in the form (image_type_id).
Can I reference this with some ruby or does this need javascript?