title: how to add click on jquery append
body: <p>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</p>
  <pre><code>$('.div-all').append(`&lt;div class=&quot;div-inputs&quot; id=&quot;1&quot;&gt;&lt;button id=&quot;remove-btn&quot;&gt; &lt;span id = &quot;&quot; class=&quot;minus&quot;&gt; - &lt;/span&gt; &lt;span class=&quot;plus&quot; id = &quot;plus-display&quot;&gt; + &lt;/span&gt; &lt;/button&gt; &lt;input type=&quot;text&quot; name=&quot;&quot; id=&quot;&quot;}&quot;&gt;&lt;/div&gt;`);
  </code></pre>
  <p>Append successfully created but click don't working</p>
  <pre><code>$('#remove-btn').click(() =&gt; {
    console.log('clicked');
  })
  </code></pre>