jquery get image src
snippet in javascript

jquery get image src

user2653

$('.img1 img').attr('src');

jquery get image src

user6094


 var str = "Hello World!";
var res = str.toUpperCase();
 

jquery get image src

user6070

readTextFile("file:///C:/your/path/to/file.txt");

function readTextFile(file)
{
    var rawFile = new XMLHttpRequest();
    rawFile.open("GET", file, false);
    rawFile.onreadystatechange = function ()
    {
        if(rawFile.readyState === 4)
        {
            if(rawFile.status === 200 || rawFile.status == 0)
            {
                var allText = rawFile.responseText;
                alert(allText);
            }
        }
    }
    rawFile.send(null);
}

jquery get image src

user2088

$("p").click();

$("p").click(function(){

  // action goes here!!

});

 

jquery get image src

user2506

$('#imageContainerId').prop('src')