Je n'ai pas du tout a fait saisir l'utilisation de draggable et droppable car ceci ne fonctionne pas ..
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
43
44
45
46
47
48
49
50
51
52
<script type="text/javascript">
 
$(function(){
var destination
 
 
$("#dispo li").draggable({
					appendTo: '#choix'
					});
$("#choix li").draggable({
					appendTo: '#dispo'
					});					
 
$("#choix, #dispo").droppable({
		drop : function (event,ui){ 
 
   						$(this).append(ui.draggable)
 
						}
						}				
			)
 
 
 
}); 
 
</script>
 
 
<style type="text/css">
ul {height: 100px;
    width:100px;
   border:solid 1px red;
    list-style-type:disc;}
</style>
 
 
</head>
<body > 
<ul id="dispo">
	<li id="one">un</li>
	<li id="deux">two</li>
</ul>
 
<ul id="choix">
	<li id="three">un</li>
	<li id="four">two</li>
</ul>
 
 
</body>
</html>
ou est l'erreur ?