[jQuery] .live() question

[jQuery] .live() question


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:
$("#demo1 li a").die(); // Cancel the event on #demo1 and #demo2
$("#demo1 li a").die("click"); // Cancel the event on #demo1 and
#demo2
$("#demo1").find("a").die(); // Cancel the event on #demo1 and #demo2
$("#demo1").find("a").die("click"); // Cancel the event on #demo1 and
#demo2
What should I do? (I would like to keep the function anonymous)
Thank you for your time :)
Best regards,
Ivan