Count all div and add each number inside span in descending order
I have this code from earlier question
$("div").each(function(i) {
$(this).find("span").text(++i);
});
-- full code in action = http://jsfiddle.net/pm3YL/
This JQuery code count every div in the page and add the order number
inside span
But I need to do the same descending order
So the output will be like this one
http://jsfiddle.net/pm3YL/1/
Instead of
http://jsfiddle.net/pm3YL/
No comments:
Post a Comment