I have a dropdown list, and depend on what option you choose here, a CJuiDatePicker has to change his option ‘maxDate’ dynamically.
It works perfect if my CJuiDatePicker has ‘flat’ to false (this option hide the widget before you click the input field), because there is an option called ‘beforeShow’ that executed before show the widget.
'flat'=>false, //I want to change this to true, and show the widget as an inline calendar
'options'=>array(
....
'beforeShow' => 'js:function(){
maxdate = maxDate();
$(this).datepicker("option","maxDate",maxdate.responseText);
}',
...
)
but does anybody know how can I change ‘maxDate’ if I have ‘flat’ to true? because in this case, the property ‘beforeShow’ does not work