Reputation: 183
Why jQuery Scripts Working On My Localserver When I Creating Script It's Working Fine , But When I Uploaded This Script On Hosting Webserver Then It's Not Working Properly! Please view this problem and solve please. my site url: https://offersview.com
Regards,
Sajjad Hossain
Upvotes: 0
Views: 1507
Reputation: 3056
because the protocol of your website is https, but the jQuery Scripts is using http protocol. Therefore, jQuery can't be loaded. Change the link like this :
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js" type="text/javascript"></script>
I got the answer from here
Upvotes: 1
Reputation: 2674
If using Chrome, go to the menu -> More Tools -> Dev Tools and look at the script errors. You're trying to load jquery at an http URL from an HTTPS location first of all. Even if changed to regular http in the address bar, you're getting other errors like:
Uncaught TypeError: $(...).textition is not a function
Upvotes: 1