I made this code to select one checkbox when I click on a image but this don't work.
$linkToInterview = 'checkById(document.myform.checkbox,$interview_id)';
?>
<a href="javascript:void(0);" onclick='<?=$linkToInterview?>'><img src="<?=siteConfig::img_dir?>new_photos/video.gif" style="border:0px"/></a>
And Javascript function:
<script type="text/javascript">
function checkByID(chk,id) {
chk[id].checked = true ;
}
</script>
And checkbox code:
<td><input type="checkbox" name="checkbox" value="<?php echo $fet['id']; ?>"