Order Numbers

Marko Krstić
18 Feb 2022
(function ($) {
  $(".wrap").each(function () {
    $(".item", this).prepend(function (i) {
      return $("<span />", { text: i + 1 });
    });
  });
})(jQuery);

Was this article helpful?

Tags

Categories

Never miss new post again

Subscribe and get list of new posts in your inbox

Click to Copy