Hi .
I want to create form with chtml without model. I’m using chtml:checkboxlist and I want to only 2 selection on checkboxlist but i dont apply limit for checkboxlist . How can do it?
<?php
$selected_ids=array();
$data_list= array('1'=>'One','2'=>'Two','3'=>'uc','4'=>'dort');
echo CHtml::checkBoxList('list_name', $selected_ids, $data_list,
array(
'onclick'=>'javascript:chkcontrol();',)
);
?>