diff --git a/js/common.js b/js/common.js index a00230f..1421257 100644 --- a/js/common.js +++ b/js/common.js @@ -459,8 +459,11 @@ function setMemberByType(src, dest, control) //for radios, the onchange event is on the parent fieldset if(control.type!=undefined && control.type=="radio"){ - var parentFieldset = getFieldsetsWithRadios(control); - parentFieldset.onchange(); + var parentFieldset = getFieldsetsWithRadios(control)[0]; + + if(parentFieldset.onchange){ + parentFieldset.onchange(); + } } }