<td>
<?php echo $form->textfield($model,'rating');?>
<input type="text" id="amount_basic" style="border:0; color:#f6931f; font-weight:bold;" value="0" />
<?php
$this->widget('zii.widgets.jui.CJuiSliderInput', array(
'name'=>'slider_basic',
'value'=>0,// default selection
'event'=>'change',
'options'=>array(
'min'=>0, //minimum value for slider input
'max'=>5, // maximum value for slider input
// on slider change event
'slide'=>'js:function(event,ui){$("#amount_basic").val(ui.value);}',
),
// slider css options
'htmlOptions'=>array(
'style'=>'width:200px;'
),
));
?>
</td>
i want to give draggable value in text field how i can do that