Jquery UI のドラッグ可能な実験を行っていますが、現在アプリケーションが機能しておらず、その理由がわかりません。コードは次のとおりです。
<html>
<head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.9/jquery-ui.min.js"></script>
<script type="text/javascript">
$(".productItem").draggable({
helper: 'clone',
handle: "productItem"
});
$("#basket").droppable({
accept: ".productItem",
drop: function(event, ui){
$("<div></div>")
.html(ui.draggable.text())
.appendTo($(this));
}
});
</script>
</head>
<body>
<h2>Products</h2>
<div id="list">
<div class="productItem">product 1</div>
<div class="productItem">product 2</div>
<div class="productItem">product 3</div>
</div>
<hr/>
<h2>Basket</h2>
<div id="basket" style = "height: 100px; border: 1px solid red;">
</div>
</body>
</html>
このコードは JsFiddle で動作していますが、クロムで動作させることができないようですので、jQuery が含まれているためだと思います。誰か助けてくれませんか?