observing:
$(‘mycheckbox’).observe(‘click’, function(e){alert(‘checked = ‘ + this.checked);});

setting throught scripting:
$(‘mycheckbox’).checked = true;
$(‘mycheckbox’).setAttribute(‘checked’, true);
$(‘mycheckbox’).setValue(”); // will un-check/null value
$(‘mycheckbox’).setValue(‘anything’); // will check/on value
$(‘mycheckbox’).click(); // will toggle the checkbox

Leave a Reply

Your email address will not be published. Required fields are marked *