$('.photoSaved').click(function () {
var savedPhoto = $(this).attr('id');
// create image and append the html inside <div id=#image>
$("#image").append("LOL").show();
});
Why does this turn out as "LOLLOL" ?
I have looked for #image anywhere in my file. #image gets used by another function too, but that doesnt execute if you dont click a button. I even commented it so it has no function, and still I get "LOLLOL"
#image is just a normal <div id="image" style="display:none;"></div>
What could it be?