I want to use Lazy Load which requires an attribute named "data-original" which points to the original image src value. I can create the new "data-original" with the value from the src attr like this without a problem:
$('img.lazy').each(function() {
a = $(this).attr("src");
$(this).attr("data-original", a);
});
But, if I follow with this (which Lazy Load needs the src value to be):
$('img.lazy').each(function() {
b = "img/grey.gif";
$(this).attr("src", b);
});
The data-original and src atrr both become "img/grey.gif"
Thanks from the newbie!
img/grey.gif
even if that plugin is disabled? – Krycke