Replies: 1 comment
-
I found what make the issue: I had to duDatepicker librairy before JQuery librairy and call duDatepicker() like this duDatepicker('.datepicker2', { auto: true, inline: true, format: 'dd/mm/yyyy', }); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi dmuy,
I want to use your beautiful datepicker for my Django project (using Django Material kit - material design).
But I have many issues and did not manage to install and use duDatepicker like in the doc.
I load duDatepicker
<script src="https://unpkg.com/@dmuy/[email protected]/dist/duDatepicker.js" /> <script src="https://cdn.jsdelivr.net/gh/dmuy/[email protected]/dist/duDatepicker.min.js" />The only way I manage to use this duDatepicker was calling datepicker like this:
window.onload = function () {duDatepicker('.datepicker2, .datepicker3', { auto: true, inline: true, format: 'dd/mm/yyyy'})}
otherwise, got error jQuery.Deferred exception.
But doing with windows.onload, other JS event do not works.
Could you help me?
Regards,
Jérôme
Beta Was this translation helpful? Give feedback.
All reactions