Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<!--
<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
-->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.13/jquery-ui.min.js"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
<!--[if IE]>
  <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<style>
  article, aside, figure, footer, header, hgroup, 
  menu, nav, section { display: block; }
  li{
    border: 1px solid black;
    width: 50px;
    padding: 5px;
    margin: 10px;
  }
</style>
</head>
<body>
  <ul>
    <li><span>One</span></li>
    <li><span>Two</span></li>
    <li><span>Three</span></li>
  </ul>
</body>
</html>
 
// now you will see UL element in your console
// try to change jquery version and you will see another result: span or li - depends on where you start dragging.
$('ul').sortable({
  start: function (event, ui){
    console.log(event.target);
  }
});
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers