I try to trigger an event on user click, then I used the on click method of JQuery. The problem is that I create my element after my onclick function.
I've read here or here that we can add a balise name between click and the function but my code return n.apply is not a function
Here is my JQuery method:
d3.selectAll("body")
.on('click', '.child', function(){
console.log("here");}
and later on,this code return the good elements :
console.log(d3.selectAll("body .child"));