class method Form.Element.serialize
Form.Element.serialize(element) → String
Returns a URL-encoded string representation of a form control in the
The result of this method is a string suitable for Ajax requests. However,
it serializes only a single element - if you need to serialize the whole
Serializing a disabled control or a one without a name will always result in an empty string.
If you simply need an element's value for reasons other than Ajax
This method can be called either as an instance method or as a generic method. If calling as a generic, pass the instance in as the first argument.