Hello all,
I'm beginner in javascript and I'm struggling loading jquery with Flask.
I know it should be placed in the static folder but jQuery is not detected.
I've found a small script to check whether jQuery is loaded or not (see after).
Could you please help?
{% block content %}
<script src="js/jquery.min.js"></script>
<script>
window.onload = function() {
if (window.jQuery) {
// jQuery is loaded
alert("Yeah!");
} else {
// jQuery is not loaded
alert("Doesn't Work");
}
}
</script>
Many thanks in advance,
Nicolas