Bonjour,

Mon code js à l'erreur du titre (missing: after property id) sur sa ligne:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
 
$("li.menuEmpty > a").click(function() {
le code complet:

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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
 
$.ajax({
				//$("li.menuEmpty[a]").one("click", function() {
				$("li.menuEmpty > a").click(function() {
					if($("a").hasClass("wheel")) {
						beforeSend: function() {
							$("a").removeClass("wheel");
							$("a").addClass("ajaxLoader");
						}, complete: function() {
							$("a").removeClass("ajaxLoader");
							$("a").addClass("wheel");
						}	
					}
					if($("a").hasClass("check")) {
						beforeSend: function() {
							$("a").removeClass("check");
							$("a").addClass("ajaxLoader");
						}, complete: function() {
							$("a").removeClass("ajaxLoader");
							$("a").addClass("check");
						}	
					}
					if($("a").hasClass("caddie")) {
						beforeSend: function() {
							$("a").removeClass("caddie");
							$("a").addClass("ajaxLoader");
						}, complete: function() {
							$("a").removeClass("ajaxLoader");
							$("a").addClass("caddie");
						}	
					}
					if($("a").hasClass("play")) {
						beforeSend: function() {
							$("a").removeClass("play");
							$("a").addClass("ajaxLoader");
						}, complete: function() {
							$("a").removeClass("ajaxLoader");
							$("a").addClass("play");
						}	
					}
				})
			});
l'html correspondant est:
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
25
26
27
 
<ul>
					<li class="menuEmpty">
						<a href="#" class="wheel">
							<span class="title">xxxx</span>
							<span class="text">xxxx</span>
						</a>
					</li>
					<li class="menuEmpty">
						<a href="#" class="check">
							<span class="title">xxxx</span>
							<span class="text">xxxx</span>
						</a>
					</li>
					<li class="menuEmpty">
						<a href="#" class="caddie">
							<span class="title">xxxx</span>
							<span class="text">xxxx</span>
						</a>
					</li>
					<li class="menuEmpty">
						<a href="#" class="play">
							<span class="title">xxxx</span>
							<span class="text">xxxx</span>
						</a>
					</li>
				</ul>
Savez-vous pourquoi cette erreur?