Skip to content Skip to sidebar Skip to footer

Odd Behavior When Removing Action Buttons From A Table In Javascript

I have a page that builds a table using DataTables, and each row has an Action Button that adds some data (an ID, just an int) from that row to a list. To keep users from clicking

Solution 1:

I'm not an expert on JQuery, but could remove() in your last line be re-sizing the list so that the element which used to be at index 1 is now at index 0, causing you to skip it when you increment the index?


Post a Comment for "Odd Behavior When Removing Action Buttons From A Table In Javascript"