Add item to a collection list.
To add item to a collection list we can write: https://raw.githubusercontent.com/finsweet/jqueryCourse/main/collection%20list/ex3.js?actionable=true In the above code, we use .demo-items and append to add html to the list.
$(document).ready(function(){
XT1
});
</script>
Live demo
<div id="minidivpage" class="example-live"><div class="collection-list-wrapper w-dyn-list"><div role="list" class="w-dyn-items demo-items"><div role="listitem" class="collection-item w-dyn-item"><div class="position">Manager</div><div>Matt Macey</div></div><div role="listitem" class="collection-item w-dyn-item"><div class="position">CEO</div><div>Chris Mills</div></div><div role="listitem" class="collection-item w-dyn-item"><div class="position">COO</div><div>Justin Willis</div></div><div role="listitem" class="collection-item w-dyn-item"><div class="position">CTO</div><div>Daphne Norris</div></div><div role="listitem" class="collection-item w-dyn-item"><div class="position">Manager</div><div>Eleanor Mendez</div></div></div></div><a id="filter" href="#" class="w-button">Click!</a></div>
$(document).ready(function() {
XT1
});
</script>