corresponds with this checkbox below it.
<input type="checkbox" name="checkbox" id="svc_tp_1" value="svc_tp_1" /
><img src="images/screen_print.jpg" onclick="toggle('svc_tp_1'); return
true;" />
I know how to get the checkbox to check when the image is clicked, but
what I really want is a toggle. When a user clicks on the image, the
system should first check to see if svc_tp_1 is checked or NOT
checked. If it is not checked, then I'd like for it to be checked.
If it is already checked, then I want the checkbox to go away. Simple
enough? PHP and Javascript are so different that something so simple
like this can waste a lot of my time.
function toggle(me) {
if (me == checked) {
me.checked = checked;
} else {
me.checked = unchecked;
}
}