I have a theme that uses jQuery v3.5.1 and I want to use a calendar that also uses jQuery but other form.
Base page:
<script src="{% static 'assets/vendor/jquery/jquery.min.js' %}"></script>
Page that extends base:
{% extends 'main/base.html' %}
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" ></script>
How can I make this work ? If I remove the second page's dependency then the calendar will work but the style of the theme not obviously.
I've tried this solutions but didn't work: Can I use multiple versions of jQuery on the same page?
Can anyone give me a hint?
Error from Dev. Tools console:
jquery-3.3.1.slim.min.js:2 Uncaught TypeError: $(...).datetimepicker is not a function
at HTMLDocument. ((index):372)
at l (jquery-3.3.1.slim.min.js:2)
at c (jquery-3.3.1.slim.min.js:2)