Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script src="//code.jquery.com/jquery-2.1.0.min.js"></script>
  <meta charset="utf-8">
  <title>JS Bin</title>
</head>
<body>
<div id="orders">
<div class="order" id="1"> 1 </div>
<div class="order" id="2"> 2 </div>
<div class="order" id="3"> 3 </div>
</div>
<div id="droplist"> </div>
</body>
</html>
 
#orders{
    border: 1px solid black;
}
 
$('.order').on('click',function(){
        alert('clicked');
        $(this).removeClass('order');
        $(this).addClass('drop');
        $(this).appendTo('#droplist');
        $(this).off("click");
});
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers