how to get current src in jquery code example Example 1: jquery get image src $('.img1 img').attr('src'); Example 2: jquery get img src $('img').attr(src);