modules/raptor_glue/js/formHelper.js
/**
 * Clear a checkbox such that it triggers cascading events
 * @param ID checkboxid
 */
Clear a checkbox such that it triggers cascading events
@param ID checkboxid
Clear a checkbox such that it triggers cascading events @param ID checkboxid
function clearCheckboxById(checkboxid)
{
    var checkbox = document.getElementById(checkboxid);
    if(checkbox.disabled)
    {
        checkbox.checked = false;
    } else {
        checkbox.checked = true;   
        $( "#" + checkboxid ).trigger( "click" );  
    }
}
function clearCheckboxById ( checkboxid ) { var checkbox = document . getElementById ( checkboxid ) ; if ( checkbox . disabled ) { checkbox . checked = false ; } else { checkbox . checked = true ; $ ( "#" + checkboxid ) . trigger ( "click" ) ; } }
Clear a checkbox such that it triggers cascading events
 @param ID checkboxid
Clear a checkbox such that it triggers cascading events @param ID checkboxid
//alert('clearing ' + checkboxid); //This only works if checkbox is not disabled. //Turn it on first      //So it cascades the event //alert('cleared ' + checkboxid);