I'm using the Animated Responsive Image Grid plugin and want to change the images src through Javascript / Jquery.
HTML code:
<div id="ri-grid" class="ri-grid ri-grid-size-1 ri-shadow">
<ul>
<li><a href="#"><img src="images/medium/1.jpg" alt="Whatever works"/></a></li>
<li><a href="#"><img src="images/medium/2.jpg" alt="Anything else"/></a></li>
<!-- ... -->
</ul>
I have an array of links of images with variable size
vectorImagens=[]
The goal is to change the src="images/medium/1.jpg"
to src=vectorImagens[0]
, and src="images/medium/2.jpg"
to src=vectorImagens[1]
and etc