insert

Inserts a new item into the field array.

insert(form, name, options);

Parameters

Explanation

With at you define the index where the item should be inserted. The action will only be executed if you define a valid index. If you don't specify an index, the item will be added at the end.