Cjuidatepicker Field Value Not Being Set To Null Using Js

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.





Following is my code snippet for generating the CJuiDatePicker:

$this->widget('zii.widgets.jui.CJuiDatePicker', array(





Any tips…?

Thanks in advance.



Well, now its working. I was adding a div in DOM and moved the date code before the addition of new div just to check if it is causing any error because then the processing would stop. To my surprise it worked…any thoughts on this…fundamentally, it should have worked otherwise.