je n'arrive pas à importer jQuery
Salut à tous
je début dans l'apprentissage de javascript et jQuery.
j'ai écrit un script js dans lequel j'appelle les fonctions jQuery. j'ai importé la bibliothèque jQuery dans mon fichier html, mais aucune fonction jQuery n'est reconnu :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
<html>
<head>
<title>Ma page d'accueil</title>
<link rel="stylesheet" type="text/css" href="style.css" />
<SCRIPT type="text/javascript" src="script.js"></SCRIPT>
<SCRIPT type="text/javascript" src="jquery.js"></SCRIPT>
</head>
<body>
<div id="conteneur">
<h1>Le foreach() ne vous fera plus peur...</h1>
<p>bonjour comment ça va, je suis sur que si tu <span>clique ici</span> ça fait quelquechose</p>
<div id="makeengreen">Fait moi devenir tout vert!!</div>
<div id="cachemoi">cache-moi!!</div>
</div>
</body>
</html> |
Code:
1 2 3
| $(function(){
$("#cachemoi").hide(1500);
}); |
comment faire pour pouvoir utiliser les fonctions jQuery?
Merci d'avance