
Best Answer Na_uM , 17 March 2015 - 15:47
после </ul>
<script type="text/javascript"> while ($('ul > img:lt(3)').size()) { $('ul > img:lt(3)').wrapAll("<div></div>"); } $("div:even").addClass("one"); $("div:odd").addClass("two"); </script>Go to the full post
