Bonjour,

J'ai une fonction Jquery qui fonctionne bien, cependant elle met a jour ma div avec les données dans le mauvais sens, je pensai que c'était : .eq(0)

actuellement j'ai :
1
2
3
4
5

et je voudrai
5
4
3
2
1

Voici le JQuery :

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
var hu2 = $("#hu").val();
var qty2 = $("#qty").val();
var comment2 = $("#comment").val();
var dataString2 = 'hu='+ hu2 + '&qty=' + qty2 + '&comment=' + comment2;
$.ajax({
type: "POST",
url: "lastep.php",
data: dataString2,
cache: false,
success: function(html){
$("#flashep").first();
$("#flashep").append(html);
jQuery("#flashep").eq(0).animate({opacity:0},1000).animate({opacity:1}, 1000);
}
});
Merci