Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <img id="Image" srcset="img/my-large-image.jpg x2" src="img/my-image.jpg" width="500">
- $("#Image").one("load", function() {
- //code
- }).attr("src", "img/my-new-image.jpg").attr("srcset", "img/my-new-large-image.jpg x2");
Add Comment
Please, Sign In to add comment