Q:

My jquery load script is just not working, why?

I am simply trying to load a PHP file and replace the content of a div, but I cannot get the load to work.
$(document).ready(
    $('img.img1').click(function(){
        $('Close-div-1').load('gcard_save.php');
        document.getElementById("demo").innerHTML= "<img src=' http://prisonpulse.com/wp-content/uploads/2013/03/1363064428581.jpg ' .. />";
    })
);

I have ran out of things to try, does anyone know how to solve this?.

A:

Every event needs a callback function in jQuery. Please take a look at the documentation and see why this code is completely wrong. Or take a look at the console (Ctrl + J or F12 in IE) and see what error you get.
$(document).ready(function () {
    $('img.img1').click(function (){
        $('Close-div-1').load('gcard_save.php');

        document.getElementById("demo").innerHTML= "<img src=' http://prisonpulse.com/wp-content/uploads/2013/03/1363064428581.jpg ' .. />";
    });
});

EDIT: I had to reformat your code to see this mistake. It really helps you to make your code readable (that means indent consistently, use some whitespace, ect)

