Data-focusinsert live demo


Click "Subitems" and then click the add button to add sub items


Add item
<h2>Click &quot;Subitems&quot; and then click the add button to add sub items</h2>
<div data-array="List" tabindex="0">
    <div class="well">
        <label>Item title</label>
        <input type="text" name="Title" />
        <hr/>
        <div data-array="List" data-type="List" tabindex="0" data-placeholder="No sub items"></div>
    </div>
</div>

<a class="btn btn-default" data-action="add" data-focusinsert="1" data-target="List">Add item</a>
No JS code used for this example

Output templates

Templates used for document and web page generation:

Friendly Name File Name Template