Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $('.thumb-container-xs').click(function() {
- ///alert("You have clicked!");
- var img = $(this).find('img');
- var img_src = img.attr('src');
- var img_title = img.attr('title');
- var img_alt = img.attr('alt');
- $("#productImage0").attr({
- src: img_src + '?' + new Date().getTime(), //adding random number at the end of the src not working
- title: img_title,
- alt: img_alt
- });
- $("#productImage1").attr({
- src: img_src + '?' + new Date().getTime(), //adding random number at the end of the src not working
- title: img_title,
- alt: img_alt
- });
- $("#productImage0").load(function(){console.log(0)});
- $("#productImage1").load(function(){console.log(1)});
- });
Add Comment
Please, Sign In to add comment