Bonjour,
s'il vous plait j'ai un petit problème avec la boucle for:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 for(var i=0; i<4; i++){ x = new String(i); if ($("#type-"+x).length) { alert(x); //ici s'affiche 0,1,2,3 bien $(this).bind('change', function() { alert(x); //mais la ne s'affiche que 3 les autres non :cry: $.post('../ajx/load_products.php', {typ:$(this).val()}, function(data) { $("#productid-"+x).html(data); //donc j'aurais une modification du html qu'au niveau de la dernière itération :? }); }); } }
Aidez moi svp
Partager