DatePicker altField isn't an INPUT

DatePicker altField isn't an INPUT

Hello,

Currently, datePicker() is designed to populate only INPUT form fields (main field and altField).
I want to send the date in an ISO format through a form field and display it in a human readable format (but not send it in this format). So I want to use another markup pair as altField.

I think I can do it :
In the function
  1. _updateAlternate: function(inst) {
I shoud replace
  1. $(altField).each(function() { $(this).val(dateStr); });
by
  1. $(altField).each(function() {
  2.   if($(this).prop('nodeName')=='INPUT') $(this).val(dateStr);
  3.   else  $(this).html(dateStr);
  4. });

Maybe it should be a good idea to include this patch in a future version of the library.

Regards