I am trying to add a draggable object to to a simple html page.
IE gives: Object doesn't support this property or method
FF gives: jQuery(".dragthis").draggable is not a function
Using latest jquery unpacked. Here is the code:
<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?
You need to include the jQuery UI library.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With