jquery-ui/tests/visual/draggable.html
2008-06-24 14:29:29 +00:00

28 lines
736 B
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<title>Simple Draggable</title>
<link rel="stylesheet" href="all.css" type="text/css" media="screen">
<script type="text/javascript" src="../../jquery-1.2.6.js"></script>
<script type="text/javascript" src="../../ui/ui.core.js"></script>
<script type="text/javascript" src="../../ui/ui.draggable.js"></script>
<script type="text/javascript">
$(function() {
$("#draggable").draggable({ handle: "span", drag: function() { console.log(1); } });
});
</script>
</head>
<body>
<ul class="plugins">
<li>
Draggable
<div id="draggable"><span>Handle</span></div>
<div style="height: 1000px;"></div>
</li>
</ul>
<div style="height: 1000px;"></div>
</body>
</html>