trentrichardson / jQuery-Timepicker-Addon

Adds a timepicker to jQueryUI Datepicker
http://trentrichardson.com/examples/timepicker/
MIT License
2.66k stars 1.05k forks source link

Field doesn't work / show up at all. Is this setup ok? #921

Open Jany-M opened 7 years ago

Jany-M commented 7 years ago

As JS, this is what I have:

../wp-includes/js/jquery/jquery.js?ver=1.12.4 ..wp-includes/js/jquery/ui/datepicker.min.js?ver=1.11.4 ../plugins/contact-form-7-datepicker/js/jquery-ui-timepicker/jquery-ui-timepicker-addon.min.css?ver=4.7.5

Then:

<script type="text/javascript">
    jQuery(window).load(function () {
        jQuery('#res_date').datetimepicker();
    });
</script>

Finally, my shortcode in the form:

[datetime your-date id:res_date date-format:dd/mm/yyyy time-format:HH:mm first-day:1 change-month change-year placeholder "Pick a date"]

Nothing happens and no console errors, on neither Firefox nor Chrome, am I missing something?

snimavat commented 7 years ago

Picker doesnt show for me at all, and looks like its issue with the jquery ui version, i am using 1.12.1 and it doesnt work

snimavat commented 7 years ago

Here;s my fiddle with 1.11.4 and still doesnt work https://jsfiddle.net/t5kry02p/4/ If i remove the jquer-ui.css it shows up, but the ui is broken obviously