On May 18, 2009, at 2:30 PM, Josh Nathanson wrote:


Events are not automatically bound to new elements added to the dom.
However if you are using jquery 1.3+ you can do this to achieve dynamic
binding:

$("tr").live("dblclick",function(event) {
// etc.

True, but the OP was referring to rows that were already there in the first place. All he has to do is append them to the "#bottomTable tbody" without first using .remove()

$("tr").dblclick(function(event){
    $(this).appendTo("#bottomTable > tbody");
});

Works great. Less filling.

--Karl

____________
Karl Swedberg
www.englishrules.com
www.learningjquery.com

Reply via email to