<?php
if (empty($master))
$this->widget('zii.widgets.jui.CJuiButton', array(
'name' => 'b_started',
'caption' => 'Очистить',
'htmlOptions' => array(
'style' => 'height:32px;',
'class' => 'shadowbutton'
),
'onclick' => 'js:function(){document.getElementById("started").value=""; this.blur(); return false;}',
)
);
?>
<?php
Yii::app()->clientScript->registerScript('register_script_name', "
$('#editButton').click(function(){
document.getElementById('started').value=''; this.blur(); return false;
});
", CClientScript::POS_READY);
echo CHtml::button('Очистить', array('title' => "Edit", 'id' => "editButton"));
?>