CStarRating & labelEx ??

I expected having my LabelEx to auto-check the last star (example: the 5th star) when i click the label.

The code i used:




<?php echo $form->labelEx($model,'rating'); ?>

<?php $this->widget('CStarRating',array(

                'model'=>$model,

                'attribute'=>'rating',

                'maxRating'=>5,

                'allowEmpty'=>false,

                ));

?>



I think this feature should be added.

This should be added as a new CStarRating property

The functionality of clicking the label to select the input field is completely implemented by HTML standard and the browsers… this is not Yii or JS related at all…

The functionality you are requesting here would mean to add JS code to do what you request… and then someone can complain why the last star… why not the first one…

I personally (because of this above) don’t see any valid reason for implementing this…