How To Unchecked Checkbox When Load The Page ?

hi all,

this is my grid

<?php

$this->widget(‘bootstrap.widgets.TbGridView’, array(

'type' =&gt; 'striped bordered condensed',


'dataProvider' =&gt; &#036;dataProvider,


'template' =&gt; &quot;{items}&quot;,


'columns' =&gt; array(


    array('name' =&gt; 'id', 'header' =&gt; '#'),


    array('name' =&gt; 'description', 'header' =&gt; 'First name'),


    array('name' =&gt; 'check', 'type' =&gt; 'raw', 'header' =&gt; 'Select Type', 'value' =&gt; '[b]CHtml::checkBox(&quot;DonationType[&#036;data-&gt;id]&quot;,&#036;data-&gt;id,array(&quot;id&quot;=&gt;&quot;chk_&quot;.&#036;data-&gt;id,))[/b]'),


),

));

?>

when grid loading it shows as checked, but i want to unchecked this checkbox when loading the page

how i do that plz help me?

ok i fixed it through jquery

$(document).ready(function() {

$(".checkbox").each(function() {

$(".checkbox").prop("checked", false);

});

});

You should use CCheckBoxColumn.








CHtml::checkBox("DonationType[$data->id]",$data->id,array("id"=>"chk_".$data->id,'checked'=>false)),