Any future elements added to the DOM will not automatically inherit
events that are set on the page.
Try using the live() function to set your dblclick:

$("tr").live("dblclick", function(event) {...});

More info on it here: http://docs.jquery.com/Events/live#typefn

On May 18, 8:04 am, naresh <pokuri...@gmail.com> wrote:
> Hi I have a query(JQuery) here. can you plz help me in fixing the
> issue with this code.
>
> That is when I click on <tr> of first table that should get removed
> from first table and added to second table. It is happening fine and
> good. But when I double click on the <tr> that is added to second
> table no event is triggered. Why?
>
> $("tr").dblclick(function(event){
>                 var row = $(this).html();
>                 $(this).remove();
>                 $("#bottomTable").append("<tr>"+row+"</tr>");
>
> });
>
> do I need to call any method?

Reply via email to