Reputation: 103
I am not sure why jquery is giving me error in my express app. I belive I am using the full version of jquery.
this is my code in my js file.
$( document ).ready(function() {
console.log('Jquery Working');
$('.card').on('click', function() {
console.log('clicked')
})
$.get('/quizes', function (data) {
console.log(data)
});
});
And this is how I am connecting to jQuery
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
Upvotes: 1
Views: 1812
Reputation: 103
Problem solved. Bootstrap was using the slim version of jQuery which was causing the conflict.
Upvotes: 1