Answers for "jquery img src load complete"

4

jquery get image src

$('.img1 img').attr('src');
Posted by: Guest on March-13-2020
0

jquery preload images

// Image proeloading with jQuery
$.fn.preload = function() {
    this.each(function(){
        $('<img/>')[0].src = this;
    });
}

// Usage:

$(['img1.jpg','img2.jpg','img3.jpg']).preload();
Posted by: Guest on October-17-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language