w2form.getValue

Returns the current value of a given field.
getValue(field)
field string, name of the field
Returns various types.

Description

This method will find the field in the .fields array and return its value. If the field does not exists it will return undefined. The field can be nested, for example "file.name".
If you have form defined in the following way: You can do:

User Comments

comments powered by Disqus