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
- _updateAlternate: function(inst) {
I shoud replace
- $(altField).each(function() { $(this).val(dateStr); });
by
- $(altField).each(function() {
- if($(this).prop('nodeName')=='INPUT') $(this).val(dateStr);
- else $(this).html(dateStr);
- });
Maybe it should be a good idea to include this patch in a future version of the library.
Regards