w2form.toggleGroup

Toggles the collapsed state of a form's group.
toggleGroup(groupName, [show])
groupName string, name of the group
show boolean, if true the group will be expanded, if false the group will be collapsed (optional)
Returns undefined.

Description

This method will toggle the collapsed/expanded state of a group if show is not set.
If show is, the group will be collapsed/expanded based on the value of show.
If you have form defined in the following way: You can do:

User Comments

comments powered by Disqus