So here it is by browsing my records each time I have to create a code with the ID how to make just one function for all the records?
$tbody .= '<script>
$(document).ready(function(){
$("#img'.$idImage .'").click(function () { $("#img'.$idImage.'").toggleClass("minresize") } );
});
</script>';
$tbody .= '<td><img id="img'.$idImage .'" class="minresize" src="'.ASSETDIRECTORY.'uploads/'.$value.'" alt="'.$value.'" title="'.$value.'"></td>';
2
Answers
Actually this is working perfectly. Thank you Luc Laverdure your comments put me on the right track.
something like this?