jui widget event in options

please consider this




<?php

$this->breadcrumbs=array(

	$this->module->id,

);


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

	    array(

                'flat'=>true,

	        'name'=>'VacDataPicker',


	        'options' => array(




                 'create'=>"console.log('test')",

	        ),

	 


	    )

	);

?>



according to the http://jqueryui.com/demos/datepicker/#event-create create is an event of datepicker

but it does not work.

can anybody help me on this issue?

regards

As the documentation say




Supply a callback function to handle the create event as an init option.  $( ".selector" ).datepicker({    create: function(event, ui) { ... } });

try with


'create'=>'js:function(){ console.log("test"); }',

PS. console.log(); do not work on ie until you press f12