Checkboxlist Max / Min Checkboxes Validation

Is it possible to specify a max / min number of checkboxes that need to be checked?

Can it be specified as a validation rule in the model?

Anybody got any idea?


only on [size=2]jquery [/size][size=2]onchange you can count the checked items… if it exceeds you can alert… by yii framework its not possible to my knowledge…[/size]