jQuery script not working between script tags in HTML

I have a jQuery solution that works on other webs but it doesn't work on my website. It is situated between standard html script tags. Do you know what could be wrong ?
0
give a positive ratinggive a negative rating
22 Nov 2020 at 01:47 PM
Hi,

Check if you have correctly included jQuery library in your code. It should be located before the jQuery script:

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script>
$(document).ready(function(){
alert('jQuery script works');
});
</script>

0
give a positive ratinggive a negative rating
28 Nov 2020 at 12:35 PM
Tim
Share on FacebookShare on TwitterShare on LinkedInSend email
x
x
2024 AnswerTabsTermsContact us