each : Itérer un objet jQuery et exécuter une fonction anonyme pour chaque élément
Ex :
jQuery(function($){
for(let i=0; i< 10;i++) {
$("<p></p>",{
text: "Paragraphe " + (i + 1),
id: "p" + (i + 1),
class: "paragraphe"
}).appendTo("body");
}
$("p").each(function(){
console.log($(this).text());
});
});






