Limit selections to one per optgroup

Is there any way to limit selections to one per optgroup in multi-select boxes?