$(".select-people").on("change", function () { let personne = $(this).val(); $(".wrap-element").each(function () { let part = $(this).find(".yolo").text(); let total = personne * part; console.log(total); $(this).find(".yolo").text(total); }); });