serializeElements :: Form

toggle(element) -> HTMLElement Toggles the visibility of element.

The preferred method to serialize a form is Form.serialize. However, with serializeElements you can serialize specific input elements of your choice, allowing you to specify a subset of form elements that you want to serialize data from.

Example

To serialize all input elements of type "text":

Form.serializeElements( $('myform').getInputs('text') )

// -> serialized data

Prototype API 1.5.0 - prototypejs.org