Code:
<input type="checkbox" onClick="foo(this.value);" />
...
function foo(someValue)
{
alert(someValue);
}
Always pops up on, never off or undefined, or a blank string or whatever I should be expecting for the off value.
ANy idea why, and any idea what the fix may be?