AJAX DOM input fields - listeners?

AJAX DOM input fields - listeners?

Hi im a little new to javascript.

Had a question. What been trying to do is

I have a <form> and in this form i have checkbox <input type="checkbox" name="box[]" />

I show 10 at a time. I have a button that says MORE user clicks it and it shows 10 more.

I have also a Select All checkbox when user clicks it, it does select all but when I click Delete, box[] only has the first 10. How can i go by fixing this? Does it have something to do with event listening i dont really think i understand how that works?