First of all, if you are appending the same rows then it’s probably best to
clone() a row, make the necessary modifications, and then append it. You can clone it with any events that are attached. Also, instead of using
click() which won’t work for elements added dynamically, you should look into
on().