I am using java script function in yii _form view in this function i store value in variable and these variable i want to access in yii textfield
so please tell me how access textfield input from javascript variable in yii Here is my javascript function i try this but its showing me blank result
<script language="javascript">
function get_data(element)
{
var te_id = $(element).val();
document.getElementById('data').value=te_id;
}
</script>
<?php echo $form->TextField($model,'data',array('value'=>'')); ?>
get_datamethod?