Forum: Ruby on Rails can an hidden_field changed be detected by observe_form ?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Ee0293412faca21e4ebf3326ed9d5f8c?d=identicon&s=25 Kad Kerforn (kadoudal)
on 2007-05-24 14:03
in a view, I am changing programmatically an hidden field 'category_id'
(simulating a click)

<%= link_to_function("Baby-sitting", nil, :class => "enfants") do |page|
     page << "$('category_id').value = '1'"
  end %>

<%= hidden_field_tag :category_id, @category_id -%>

I try to submit the form whenever this field (or other standard input
field...)  is changed

<%= observe_form('prop_search_form',
:loading => "'search_spinner');
:complete => "Element.hide('search_spinner');
:update => {}, :url => { :controller => 'proposal', :action => 'list' })

any field is correctly detected but not this hidden field... is it wrong
I also tried to put this value in a readonly text field... same
problem...  change event is not detected

thanks for your help
This topic is locked and can not be replied to.