Good day.I deduce 50 blocks. Receive information from a file in JSON format. I get a link to a photo from JSON. I give it to the page. I need to change all the photos large on the small size photos in just one click. Please tell me how to change the link everywhere at once?
var image = data["info"][i]["img"]["big"];
block += '<img src="' + image + '"/>';
//image - link to photo
</div>