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