$(document).click(function(){
getComments();
});
function getComments()
{
var directory = $(".active img").prop("src");
directory = directory.substring(58);
//alert(directory);
$("#photoComments").text(directory);
$.post('getPhotoComments.php', function(output){
//$("#photoComments").html(output);
$("#photoComments").html("jus checkin2").show();
});
}
Above is my code. Everything works until the part where I start $.post. Nothing in the function() works. I am just testing to see if it would set my id #photoComments to the provided text: “jus checkin 2” but nothing seems to happen. Please I really need help with that. And yeah I have the url “getPhotoComments.php” set up properly and its not being used yet. Thanks
Evra: Try to put it into