I am trying to add a draggable object to to a simple html page.
我正在尝试向一个简单的html页面添加一个可拖动的对象。
IE gives: Object doesn't support this property or method
对象不支持该属性或方法
FF gives: jQuery(".dragthis").draggable is not a function
FF给:jQuery(“.dragthis”)。draggable不是函数
Using latest jquery unpacked. Here is the code:
使用最新的jquery打开。这是代码:
<html>
<head>
<script src="jquery.js"></script>
<script>
$(document).ready(function () {
jQuery(".dragthis").draggable();
jQuery(".drophere").droppable();
});
</script>
<style>
.dragthis {
}
.drophere {
}
</style>
</head>
<body>
<div class="dragthis">dragthis</div>
<div class="drophere">drophere</div>
</body>
</html>
What am I doing wrong?
我做错了什么?