$('<tr><td>contents</td></tr>').appendTo('table.ofmine').click(function (){ ... })
Or use the LiveQuery plugin, then you can register handlers only once for all similar elements (http://brandonaaron.net/jquery/plugins/ livequery) - ricardo On Dec 19, 3:36 am, fambi <fambizz...@tm4b.com> wrote: > Let's say filling a form should add a row to a table. > > Responding with the html row is not a problem, but how do you include > the event to add the row and any listeners which might follow after > it? > > Thanks