Bonjour,
j'ai entrain de suivre un tutoriel de la création se site web avec jQuery, le problème c'est que le code jQuery ne s'exécute plus même j'ai inséré la librairie dans un dossier js rien n'a changé
merci d'avance
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24 <!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"> <head> <title> demo </title> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <script charset="utf-8" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script> <script type="text/javascript" src="my_code.js"></script> <script src="js/jquery.js" type="text/javascript"> $document.ready(function() { alert('Test'); }); </script> </head> <body> <h1> Heading one</h1> <p> this is just some text for heading 1 </p> <h1> Heading two</h1> <p> this is just some text for heading 2 </p> <h1> Heading three</h1> <p> this is just some text for heading 3 </p> </body> </html>
Partager