How can I use the new class added via .append()?
Currently it looks like this, but when i click icon with remove-item class console.log doesn’t show “removed”.
$$(".add-item").on("click", function() {
$$(".item-box").append(`<h2>Test</h2> <i class="icon f7-icons color-red remove-item">minus_circle</i>`);
});
$$(".remove-item").on("click", function() {
console.log("removed");
});