bikuta wrote:
The way I'm adding the item is just by adding another row to the html
table using the append() method. Should I be doing it another way?

Instead of binding the events for all the rows individually, just bind the events once to the container element. It's events get triggered as the event bubbles up the DOM, and there you can use e.target to check which element was actually clicked etc... This way you:
A) Only bind events once, for one object instead of many (fast, clear)
B) Don't need to bind events agains as rows are added (fast, simple).

Search this group for "Event delegation" or "Event bubbling" and you should find further information.

--
Suni

Reply via email to