Hi everybody,
I want to be able to use javascript to check if a checkbox is selected. If my checkbox has the following html code

Code:
<input type="checkbox" name="cbox1" id=\"cbox1" checked="yes">
However when I use this, I always get null, even when the box is checked.

Code:
var cbox1=document.getElementById(cbox1);
alert(cbox1);
Thanks in advance.