I have this:
$(".sf_sub_accordian, .sf_find_container").bind("click", function(event) {
event.stopPropagation();
});
But it stops working when I add content dynamically via ajax-call.
How to make bind
work with dynamically created content?
Edit: Without success I have already tried this:
$(document).on("click", ".sf_sub_accordian, .sf_find_container",function(event) {
event.stopPropagation();
});
In fact, it doesn't work at all if I do it like that.