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
On May 18, 2009, at 2:04 PM, naresh 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
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.
-- Josh
-Original Message-
From: jquery-en@googlegroups.com
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
4 matches
Mail list logo