4 ms·
Probably trivial to fix, but: var found = false; $('img').each(function(i, elem) { var e = $(elem); if( e.attr('src') !== '' && !found
by someone13 13y ago
Probably trivial to fix, but:
var found = false;
$('img').each(function(i, elem) {
var e = $(elem);
if( e.attr('src') !== '' && !found ) {
e.attr("style","opacity:0.0;");
found = true;
}
});