How can I add "_small.jpg" to the img src of a bunch of images I have in a div called "banners"?
I have a jQuery script listening for window resizes - and when below 400px I want to change the img src of the images to include "_small.jpg" at the end to call in the small image source. So...
<img src="example.jpg" />
when viewed at screen sizes below 480px would then become
<img src="example_small.jpg" />
How would I do this?
P.S. I'd like the script to loop through all the images in the "banners" div to update them btw :)