Assume that I have the following HTML structure:
<div class="article">
<div class="article_img"></div>
<div class="article_preview"></div>
</div>
Both article_img and article_preview elements have a defined width and height, along with position: relative and float: left; properties to align them next to each other.
While I am aware that I can swap article_img with article_preview using $
(".article_preview").before($("article_img"));
, how can I specifically do this for every odd article element?