Hi i have this javascript .
<html>
<div>
<li class="class0 class1" data-slide-to="0">Start</li>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script>
var i;
for(i=0; i<3; i++){
$(".class1").after("<li Class='class0' data-slide-to='"+i+"'>"+i+"</li>");
}
</script>
</html>
And i get the out put as
Start
3
2
1
0
But i want to get this result in following order
start
0
1
2
3
how i get this ?How to revert the result?
0, 1, 2.class0using$(".class0:last").append('target html')for(i=3; i>=0; i--){