4

I am using below clockpicker() jquery

$('#mon_from').clockpicker({
    autoclose: true
});

This displays 24 hour clock. Can anybody knows the parameter to set am/pm clock?

Hetal Chauhan
  • 787
  • 10
  • 22

1 Answers1

5

If you check the documentation, there is a twelvehour property you can set to achieve what you need. By default it's false, you require true:

$('#mon_from').clockpicker({
  autoclose: true,
  twelvehour: true
});
Rory McCrossan
  • 331,213
  • 40
  • 305
  • 339
  • Hey thanks! it worked. Actually i tried to find in the document, but i was in this document: **https://weareoutman.github.io/clockpicker/** and here i did not find this option. Anyway, thanks :-) – Hetal Chauhan Dec 18 '17 at 09:24