jQuery Datepicker create event does not work?

I would like to access the create call back function. So far no luck. It appears the function is not getting executed. Any ideas where I may be going wrong?


$('input.datepicker').datepicker({
        create: function(){ alert('created!'); }
});

From my brief reading on the subject, it seems that the create event is available to things that are created via the widget factory.

I don’t think that the datepicker uses the widget factory yet.
http://bugs.jqueryui.com/ticket/6228

Aha! Confirmation from the author of datepicker
http://wiki.jqueryui.com/w/page/12137778/Datepicker

Future development includes:

Refactor the code to use the widget factor and follow the jQuery UI API

Thanks Paul.

The same development page from the author does also link through to a refactored development version of datepicker, which uses the widget factory.

You can find it over at: https://github.com/kbwood/jquery-ui