I need to add a click event to a list item that I create dynamically after loading the DOM.
I use;
$("#ListDiv li").live("click",function(event){
do something......
});
however, when an element is loaded onto the page and I click on it, I get nothing.
This works fine in Firefox, but not in IE8. I also tried jquery livequery and deleagte but didn't work. I tried debugging IE8 developer tools, but the method was never reached
source
share