method
observe_form
rails latest stable - Class:
ActionView::Helpers::PrototypeHelper
observe_form(form_id, options = {})public
Observes the form with the DOM ID specified by form_id and calls a callback when its contents have changed. The default callback is an Ajax call. By default all fields of the observed field are sent as parameters with the Ajax call.
The options for observe_form are the same as the options for observe_field. The JavaScript variable value available to the :with option is set to the serialized form by default.