helping calculate

how to calculate 2 input using CMaskedTextField using "completed" and output calculate view at labelEx?




$this->widget('CMaskedTextField',array(

    'model'=>$model,

    'attribute'=>'input1',

    'name'=>'input1',

    'mask'=>'9.99',    

    'htmlOptions'=>array(

        'style'=>'width:80px;'

    ),

));

$this->widget('CMaskedTextField',array(

    'model'=>$model,

    'attribute'=>'input2',

    'name'=>'input2',

    'mask'=>'9.99',

    'completed'=>'<img src='http://www.yiiframework.com/forum/public/style_emoticons/default/huh.gif' class='bbc_emoticon' alt='???' />',

    'htmlOptions'=>array(

        'style'=>'width:80px;'

    ),

));


$form->labelEx($model,'hasil');