michaeldank
9/11/2017 - 12:47 AM

separate each image row into its own gallery - eg http://www.boutiqueresidential.com.au/renting.html

separate each image row into its own gallery - eg http://www.boutiqueresidential.com.au/renting.html

<script>
  $(document).ready(function(){
//WHAT NUMBER TO START COUNTING FROM
var count = 0;
//LOOP THROUGH EVERY ROW
$(".contentImgRow").each(function(){
    //SET THE REL ATTR TO GALLERY PLUS COUNT FOR EACH CHILD
    $(this).find(".overlayImg").attr("rel", "gallery" + count++);
});
    });
</script>