modules/raptor_glue/js/formHelper.js
/**
 * Pass in the ID of the checkbox
 * @param ID mainradioid
 */
Pass in the ID of the checkbox
@param ID mainradioid
Pass in the ID of the checkbox @param ID mainradioid
function activateCheckboxById(chkid)
{
    var chkbox = document.getElementById(chkid);
    if(chkbox.disabled)
    {
        chkbox.checked = true;
    } else {
        $( "#" + chkid ).trigger( "click" );  
    }
}
function activateCheckboxById ( chkid ) { var chkbox = document . getElementById ( chkid ) ; if ( chkbox . disabled ) { chkbox . checked = true ; } else { $ ( "#" + chkid ) . trigger ( "click" ) ; } }
Pass in the ID of the checkbox
 @param ID mainradioid
Pass in the ID of the checkbox @param ID mainradioid
//Only works when not disabled. //So it cascades the event