I am using CJuiDatePicker input field for date value. After the user input, I need to set it to blank. I have used all of the following options in my JS routine but nothing seems to work. Its strange that I can select the value from date field but not set it to blank. I can not hide it since the date field is required for subsequent inputs.
$('#dateFieldId').val('');
$('#dateFieldId').val("");
$('#dateFieldId').val(null);
$('#dateFieldId').val()=null;
Following is my code snippet for generating the CJuiDatePicker:
$this->widget('zii.widgets.jui.CJuiDatePicker', array(
'model'=>$model,
'attribute'=>'history_date',
'options'=>array('changeMonth'=>'true','changeYear'=>'true','yearRange'=>'-70:+0'),
));
Any tips…?
Thanks in advance.
Regards
Faisal