I have a function that adds a div into a big div on the appended div I have a button and I want to get a click from that button
$('.div-all').append(`<div class="div-inputs" id="1"><button id="remove-btn"> <span id = "" class="minus"> - </span> <span class="plus" id = "plus-display"> + </span> </button> <input type="text" name="" id=""}"></div>`);
Append successfully created but click don't working
$('#remove-btn').click(() => {
console.log('clicked');
})