CButtonColumn > buttons > click dosn't work


'balance' => array(

	'options' => array('class' => 'refund'),

    'label' => 'refund', // text label of the button

	'url' => 'array("manage/bill/Balance&tid=".$data->id)',

	'click' => 'return confirm("ok?")',


But A tag hasn’t onclick event.

why? thank you.

Hi Ease

try this:

click => 'function() {confirm("ok?");}'

Click event is added via JS (not as tag attribute).

check what you got in your html page. it is correct or not.