I have a checkbox on a form which is unchecked by default as usual. now I want to perform two separated actions on checked and unchecked state of this checkbox.
this
Given you use JQuery, you can do something like below :
syn
function doalert() { if ($("#g01-01").is(":checked")) { alert ("hi"); } else { alert ("bye"); } }