After adding a new DOM element after an ajax request, the click event for the newly added element does not work.
I tried to disconnect the binding first, but I am getting an error.
$(".someclass").unbind("click", someEvent); $(".someclass").bind("click", someEvent);
Am I doing something wrong here? (in theory)?
source share