I have 7 images in my index HTML, and then I use a jQuery function, when I click the images the function gives me images' ids.
The function looks like:
$(".imgss").click(function() {
alert($(this).attr("id"));
});
.imgss
is a class that iIgive, but I select another city in my select box and I send variable to PHP and AJAX gives me result of other new images.
When the new image is downloaded, I try to click the images but jQuery doesn't work.
New images also have .imgss
class.
This is my php code to create images :
print_r ("<div class='responsive' id='salonlarimi_goster'>
<img src='$salonlarimi_ver[f1]' alt='salon_foto_5' width='250' height='250'
id='$salonlarimi_ver[klavuz]' class='gelenimg'>
<div class='desc'>$salonlarimi_ver[salon_isim]</div> </div>");