I've been trying to get a Jquery UI draggable to work, but I've run into the following error, and I cannot seem to figure out how to fix it.
Any ideas?

-Edit- Here is the code:
<script>
jQuery(function() {
jQuery( "#draggable3" ).draggable({
containment: "#containment-wrapper",
cursor: "move",
scroll: false,
stop: function(e , ui) {
jQuery("#mottox").val($(this).position().left);
jQuery("#mottoy").val($(this).position().top);
}
});
});</script>