I want to sort by article data-id ?
With jQuery
How can i do that?
With jQuery
How can i do that?
<section class="offers" id="featured-offers"> <article id="item-3929173859" class="offer promo-bold" data-id="3929173858" data-location="Nysa">1</article> <article id="item-3929173859" class="offer promo-bold" data-id="3929173857" data-location="Nysa">2</article> <article id="item-3929173859" class="offer promo-bold" data-id="3929173856" data-location="Nysa">3</article> <article id="item-3929173859" class="offer promo-bold" data-id="3929173859" data-location="Nysa">4</article> </section>
$(this).data("id")
Comment