Data-clear attribute demo


  • This item has an example text


Only the first item already in the list gets the default value. New items have values cleared by the data-clear="1" attribute.

<ul data-array="List1" data-clear="1">
   <li><div data-func="input" data-name="Title" data-placeholder="Enter item text">This item has an example text</div></li> 
</ul>

<button data-action="add" data-target="List1">Add new item</button>
<br><br>
<p class="well well-sm">
    Only the first item already in the list gets the default value. New items have values cleared by the data-clear="1" attribute.
</p>
No JS code used for this example

Output templates

Templates used for document and web page generation:

Friendly Name File Name Template