This can help you do what Juha said: http://flesler.blogspot.com/2007/10/jquerylisten.html
Cheers Ariel Flesler On Feb 7, 11:37 am, "Juha Suni SC" <[EMAIL PROTECTED]> wrote: > 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