So I have
$this->beginWidget('zii.widgets.jui.CJuiButton', array(
'buttonType'=>'buttonset',
'name'=>$bname.'-set',
'htmlOptions' => array('id' => 'buttonSet'.$bname),
'onclick' => "javascript:stageButtonSetClick(this)",
));
in a view and inside this widget I set up some labels and radio buttons. Everything appears to render properly with the nice rounded corners and the exclusivity of the button click.
I want to attach a bit o js code to the click event of the buttons. I know that CJuiButon is cuasing the click on the radio button label I need to be able to attach a click event to label.
How do I attach a click event to the label of a radio button?