suppose image tag has custom attribute like “originalSrc” or something like this.
before accessing that attribute can i check that img tag has that attribute or not by jquery.
$("img.lazyload").each(function() {
$(this).attr("src", $(this).attr("original"));
$(this).removeAttr("original");
});
here i remove attribute like $(this).removeAttr("original");
before remove it i want to check that img tag has the “original” attribute or not. if it has “original” attribute then i will remove it. so if there anything such checking is possible by jquery then please let me know.
thanks
1 Answer