Hello,
When I click on a image, in the below div
<img src='uploads/<? echo $dir; ?>/<? echo $file; ?>/<? echo $file1; ?>' width='100px' height='100px' style='margin-left:5px; margin-bottom:5px; border:#fff solid 2px;' id='<? echo $i; ?>' class="ind_img">
using this jquery code
$('.ind_img').bind('click',function(f){
var img_large = f.target.id;
var img_src = $('#'+img_large).attr('src');
var disp = '<div style="margin:0px;"><img src="'+img_src+'"></div>';
$('#display').html(disp);
});
the image enlarges in the following div replacing the <? include('gallery.php'); ?> with <div style="margin:0px;"><img src="'+img_src+'"></div> (above code)
<div id="display" style="overflow-y:scroll; overflow-x:none height:598px;">
<? include('b.php'); ?>
</div>
But when I click on <div id=all>All</div> <div style="margin:0px;"><img src="'+img_src+'"></div> is replaced by
<? include('gallery.php'); ?>
<div id="display" style="overflow-y:scroll; overflow-x:none height:598px;">
<? include('b.php'); ?>
</div>
This is all fine, but I am not able to repeat this step without refreshing this page, why?
Thanks Jean