Rather than initializing an embedded Datepicker on a div, there should be an option to initialize it directly on an (maybe hidden) input.
So with this markup
<input type="hidden" class="datepicker" />
you can easily initialize an embedded input with something like
$('.datepicker[type="hidden"]').datepicker({embedded: true})
This is especially useful because you don't have to
Rather than initializing an embedded Datepicker on a div, there should be an option to initialize it directly on an (maybe hidden) input. So with this markup
<input type="hidden" class="datepicker" />
you can easily initialize an embedded input with something like$('.datepicker[type="hidden"]').datepicker({embedded: true})
This is especially useful because you don't have to