Why doesn't it disappear?
Why doesn't it disappear?
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="stylesheet.css"/>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/latest/jquery.js"></script>
<script type="text/javascript" src="script.js"></script>
</head>
<body>
<p>asdasds</p>
</body>
</html>
my script.js is an external file
$(document).ready(function() {
$('p').fadeOut(500);
});
+3
source to share
1 answer
404 error when i open a new tab
http://ajax.googleapis.com/ajax/libs/jquery/latest/jquery.js
Use below code in script tag.
<script src="//code.jquery.com/jquery-1.11.3.min.js"></script>
or by kmsdev it is suggested to add a new version
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
+4
source to share