UiTimepickr Wiki page commented on
- To elaborate:
$startHourField.timepickr({updateLive:false, format12: "{h:02.d}:{m:02.d} {z:s}", suffix: ['AM', 'PM'], val: thisSHour, trigger: "click", convention: 12 });
Where thisSHour has been many formats: 24 hour time (17:00), 12 hour (05:00 PM), etc and none of it will trigger the timepickr to accept the existing value as the default value when activated...
To elaborate:
$startHourField.timepickr({updateLive:false, format12: "{h:02.d}:{m:02.d} {z:s}", suffix: ['AM', 'PM'], val: thisSHour, trigger: "click", convention: 12 });
Where thisSHour has been many formats: 24 hour time (17:00), 12 hour (05:00 PM), etc and none of it will trigger the timepickr to accept the existing value as the default value when activated...
UiTimepickr Wiki page commented on
- Hi, this is a great plugin. I have a question regarding the initial value. What value type/format is expected for the initial value of the timepickr?
The input already has a value '09:00 AM' (for example) before initializing the timepickr. After I create a timepickr on that element, I focus on the field and then tab out or lose focus on the element and the field value changes to "NaN:NaN gibberish code from my page".
What is the correct format for setting the initial value of the timepickr?
Thanks
Hi, this is a great plugin. I have a question regarding the initial value. What value type/format is expected for the initial value of the timepickr?
The input already has a value '09:00 AM' (for example) before initializing the timepickr. After I create a timepickr on that element, I focus on the field and then tab out or lose focus on the element and the field value changes to "NaN:NaN gibberish code from my page".
What is the correct format for setting the initial value of the timepickr?
Thanks