Chtml Checkboxlist selection limit

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

&#036;selected_ids=array();


&#036;data_list= array('1'=&gt;'One','2'=&gt;'Two','3'=&gt;'uc','4'=&gt;'dort');





echo CHtml::checkBoxList('list_name', &#036;selected_ids, &#036;data_list, 


array(


	'onclick'=&gt;'javascript:chkcontrol();',)


);

?>

Sorry, I’m not sure I get what you’re trying to do. Be a little more specific please…