[jQuery] Re: Remove doenst work on dynamically created li

2009-02-27 Thread etnas
Hi Dimby, your problem is very easy; you are creating a new element, a new '', but it does not have an event attached. It's a beginner mistake. You only need to change one line: $('a.remove').live ('click', function() { var id= $(this).attr('id'); $('li#'+id).fadeOut('fast', func

[jQuery] Re: Remove doenst work on dynamically created li

2009-02-27 Thread carlos benitez fil
Hi Dimby, your problem is very easy; you are creating a new element, a new '', but it does not have an event attached. It's a beginner mistake. You only need to change one line: $('a.remove').live ('click', function() { var id= $(this).attr('id'); $('li#'+id).fadeOut('fast', fu