[jQuery] Re: $("delButton")..click(function(){... for later added button's

2009-07-07 Thread pascal.nauj...@googlemail.com
a new one, the event is > not aware of this new > element. Using live, it checks elements (old and new ones) to ensure the > event is bind correctly. > > Cheers > > - Original Message - > From: "Liam Potter" > To: > Sent: Tuesday, July 07, 2009 3:58 A

[jQuery] Re: $("delButton")..click(function(){... for later added button's

2009-07-07 Thread Liam Potter
live should work, try this. $(".delButton").live("click", function(){ $(this).parent(".parentOFbutton").remove(); return false; }); pascal.nauj...@googlemail.com wrote: Hi, i implemented the following method for removing a button with it's parent: $(".delB