img src jquery from a variable code example Example 1: jquery get img src $('img').attr(src); Example 2: jquery get img src $('.img1 img').attr('src');