Hello, I'm writing a program where a user will click on a table cell and if the checkbox contained therein isn't already checked, it will check it...for some reason, my code isn't doing the trick. Any help will be appreciated!
...
<script language="javascript" type="text/javascript">
function checkBoxes(id){
if(id.checked == false)
{
alert("Not Checked!);
}
}
</script>
Now to the PHP!
Assume $id[$x] = 19;
echo "<td onClick=\"checkBoxes($id[$x])\"><input type=\"checkbox\" name=\"$id[$x]\" id=\"$id[$x]\" value=\"delete\" />Example</td>";
Any thoughts?