[Solved] ElseIf statement is not visible for script [duplicate]


Taking your question literally as “when I have no internet…”

You’re requesting jQuery via a CDN; IF you literally have no internet connection then you’re not going to have access to jQuery.

You need to download jQuery so you have a LOCAL copy available. Download it form the jQuery site then save it into your project. Then change your script tag to request it locally like so:

<script src="https://stackoverflow.com/jquery.min.js"></script>

It’s generally best practice to save your JS related files under a sub directory such as /js. So your script tag would look like this:

<script src="https://stackoverflow.com/js/jquery.min.js"></script>

2

solved ElseIf statement is not visible for script [duplicate]