addSection

adds a new empty field to the collection

string| number addSection( [string text] );
textstringthe text (value) for the new section (field)
string| numberthe ID of a newly added field

Example

multitext.addSection();

Details

The method is applied to the collection, the new field will be added to the end.

All multitext fields have unique IDs that are generated by the component. The method will return the ID of the new field (afterwards the ID may be used for programmatically removing of the field with the removeSection method).

See also
Back to top