Jump to content

Webpage not exeuting fadeOut from my <link> .jquery library


confused and dazed

Recommended Posts

Hello internet.

I am trying to use the following code and my webpage is not accepting my fadeOut function I'm using <link> to grab the jquery library from my server.

 

CODE:

$("div").click(function() {
$(this).fadeOut("slow");
});
However, if I replace
<script type="text/javascript" src="jquery.min.js"></script>
WITH
It works just fine.
Why is this?
NOTES:
1. I am placing jquery code within my <head> tags.
2. jquery.min.js is the 3.1.0 compressed file I have on my server
Link to comment
Share on other sites

I did some basic internet searching of the error I got clicking on the view source - inspect - .js link

the error is "Not allowed to load local resource" the answers were jquery is not allow to access your local files. I actually don't have it in my server I miss-spoke about about. I just have it in my local files. I'm sure you would have mentioned that had I not misled you. thanks for pointing out that I can use view source and click on links use inspect to view errors on that. THANKS!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...