Change image CButtonColumn when something changed


I’m pretty new in yii, and my english is not good enough.

I have button CButtonColumn in CGridView and it’s have an image, and i want to change it when the button clicked.




	'template' => '{upload}',


        'upload' => array(

                         'label'=>'Alokasi', // text label of the buttons



                            	 return Yii::app()->createUrl("alokasiKegiatan/create",     array("id"=>$data->id_kegiatan));




Thanks before and after