How does one target the srcset property of the source tag within a picture element with jQuery? What is the correct jQuery code to change the value of xxxxxxxxxx.jpg and yyyyyyyyyy.jpg below?
<picture>
<!--[if IE 9]><video style="display: none;"><![endif]-->
<source media="(min-width: 992px)" srcset="/images/bannerAds/xxxxxxxxxx.jpg">
<source media="(min-width: 768px)" srcset="/images/bannerAds/yyyyyyyyyy.jpg">
<source srcset="/images/bannerAds/zzzz_320x50.png">
<!--[if IE 9]></video><![endif]-->
<img src="data:image/gif;base64,R0lGODlhAQABAAAAADs=" alt="Clio">
</picture>
Well there are many ways to get it done. And honestly, someone's correct approach may not be the correct one for you due to various reasons.
This is an approach.