[jQuery] Re: .live() question

2009-04-21 Thread vakata
on ...}); $("#demo2").die("click.foobar"); Just in case anyone had the same problem :) On 20 Апр, 13:46, vakata wrote: > Hello, > > I have a question regarding live() anddie() > > I attach an event like this: > > $("#demo1 li a").live(&qu

[jQuery] .live() question

2009-04-20 Thread vakata
Hello, I have a question regarding live() and die() I attach an event like this: $("#demo1 li a").live("click",function() { ... anonymous function ... }); #("#demo2 li a").live("click",function() { ... same anonymous function ...}); The question is how to use die() on #demo1 properly? Calling: