Open cgerendasy opened 9 years ago
Nevertheless, when I click "Now", the correct time goes in the field. How can I have it show the correct time the first time? How can I make the "Now" button look like it works?
Here's how I call it: $(document).ready(function() {
$( "input[name='dateIn']" ).datetimepicker({ changeMonth: true, changeYear: true, timeFormat: 'hh:mm tt', hour: true, minute: true, onSelect: function(){ $(this).datepicker("hide"); $(this).blur(); } });
$( "input[name='dateIn']" ).timepicker({ changeMonth: true, changeYear: true, pickSeconds: true });
I'm getting the same except time is 12:00 am regardless. Using version 1.4.5 from cdn.
Nevertheless, when I click "Now", the correct time goes in the field. How can I have it show the correct time the first time? How can I make the "Now" button look like it works?
Here's how I call it: $(document).ready(function() {
$( "input[name='dateIn']" ).timepicker({
changeMonth: true, changeYear: true, pickSeconds: true });