Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="drag-drop: naive vs refcount">
  <meta charset="utf-8">
  <title>JS Bin</title>
</head>
<body>
 
  <h1>Drag/Drop API Implementations</h1>
  
  <div draggable="true">:: Pick me up and drop me</div>
  <h2>Naive Implementation</h2>
  <div class="drop-target naive" title="target">
    <p title="target &gt; child">
      child element
      <span title="target &gt; child &gt; grandchild">grandchild element</span>
    </p>
  </div>
  
  <h2>Reference Counting Implementation</h2>
  <div class="drop-target refcount" title="target">
    <p title="target &gt; child">
      child element
      <span title="target &gt; child &gt; grandchild">grandchild element</span>
    </p>
  </div>
  <h1>Credits</h1>
  
  <p>
    <a href="http://stackoverflow.com/a/21002544/847993">All</a>
    <a href="http://jsfiddle.net/HU6Mk/145/">credit</a> goes to <a href="http://stackoverflow.com/users/1906362/woody">Woody@stackoverflow</a>.
  </p>
  
</body>
</html>
Output

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

Dismiss x
public
Bin info
dbazilepro
0viewers