in my code, I duplicate a piece of html code with jquery for some reasons. In this piece of code, I have a button. The initial button, when it's clicked, displays something in the page. But the problem is that my new button, generated in jquery, doesn't run the event. It does nothing.
My button (in a table) :
<button><span class="glyphicon glyphicon-zoom-in afficher_itk" aria-hidden="true"></span></button>
The way it's duplicated :
var table = document.getElementById("table_cultures");
var row = document.getElementById('clonedRow');
var clone = row.cloneNode(true);
table.appendChild(clone);
The "onclick" function :
$(".afficher_itk").click(function(){
//do something
});