Bonjour. J'ai un problème avec ce code, qui fonctionne sur un fichier nommé X.html, mais pas si l'on nomme son fichier X.xhtml.
J'ai le même problème sous Firefox et sur Chrome.
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 <!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"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title> Super app de la mort qui tue ! </title> <script src="jquery.js" type="text/javascript"></script> <script langage="javascript" > $(function () { $("div").click(function () { $(this).append("<p>test!! </p>"); return false; }); }); </script> </head> <body> <div> <p>Ceci est un div</p> </div> </body> </html>
Partager