How would you write the below code in jQuery?
I have the code working in php, it is to create a way of added a list item with light box and an image. Without having the write each img src and lightbox link out.
<?php
$images = range(1, 3);
$rowCount = 0;
foreach ($images as $image) {
// stripping stuff:
echo '<li class="search-dogs"';
echo '><a href="images/gallery/search-dogs/'.$image.'.jpg" rel="lightbox[gallery]">
<img src="images/gallery/search-dogs/'.$image.'.jpg">
</a></li>';
}
?>