JSFiddle - React, Tailwind, and code Playground

HTML

<div id="products">
    <h1 id="ui-widget-header" class="ui-widget-header"><p align="center" style="font-size:30px;">BLOCKS</p> </h1>
    <div class="ui-widget-content">
        <ul>
            <li data-id="1" class = "fourth" id="fourth"><a href="#" style="color:#FFFFFF;" class="button button-orange"> 1000$ </a></li>
            <li data-id="2"  id = "credit"><a href="#" style="color:#FFFFFF;" class="button button-orange"> -1000$ </a></li>
            <li data-id="1" class="fourth" id="fourth"><a href="#" style="color:#FFFFFF;" class="button button-orange">1000$ </a></li>
            <li data-id="4" id = "credit0"><a href="#" style="color:#FFFFFF;" class="button button-orange"> -1000$ </a></li>
            <li data-id="5" class = "credit2" id="credit2"><a href="#" style="color:#FFFFFF;" class="button button-orange"> withdraw </a></li>
            <li data-id="6" class = "credit3" id="credit3"><a href="#" style="color:#FFFFFF;" class="button button-orange">Transaction </a></li>
            <li data-id="7" class = "credit1" id="credit1"><a href="#" style="color:#FFFFFF;" class="button button-orange">Deposite</a></li>
            <li data-id="8" class = "credit4" id="credit4"><a href="#" style="color:#FFFFFF;" class="button button-orange">Cheque </a></li>
        </ul>
    </div>
</div>
<table>
    <tr><td>
 <h3 align="center" class="ui-widget-header">Debit Side</h3>
<table border=1 width="325">
    <tr>
        <td><div id="shoppingCart1" class="shoppingCart">
    <h3 align="center" class="ui-widget-header">Account</h3>
    <div class="ui-widget-content">
        <ol align="center" style="list-style:none" id="bank">
            <li class="placeholder" >&nbsp;<br><br></li>
        </ol>
    </div>
</div>
     </td>
        <td><div id="shoppingCart4" class="shoppingCart">
    <h3 align="center" class="ui-widget-header">Amount </h3>
    <div class="ui-widget-content">
       <ol align="center" id="amt1" style="list-style:none">
            <li...

CSS

#products{font: 13px/20px 'Lucida Grande', Verdana, sans-serif;
  color: #404040;
  background: #f2f8fc;}
.ui-widget-content ul li
{
    display: block;
	float: left;
	line-height: 30px;
	list-style:none;
	margin: 0 0px;
    text-decoration:blink;
}
.ui-widget-content
{
  min-height: 100%; 
  text-align: center;
}
.hidden{
    visibility:hidden;
}
#equal
{display:none;
}
#e1
{display:none;
}
.button {
  position: relative;
  display: inline-block;
  vertical-align: top;
  
  height: 36px;
  line-height: 35px;
  padding: 0 20px;
  font-size: 150%;
  color:#FFFFFF;
  text-align: center;
  text-decoration: none;
  text-shadow: 0 -1px rgba(0, 0, 0, 0.4);
  background-clip: padding-box;
  border: 1px solid;
  border-radius: 2px;
  cursor: pointer;
  -webkit-box-shadow: inset 0 1px rgba(255, 255, 255, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 1px 2px rgba(0, 0, 0, 0.25);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 1px 2px rgba(0, 0, 0, 0.25);
}
.button:before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
     color:#FFFFFF;
  pointer-events: none;
  background-image: -webkit-radial-gradient(center top, farthest-corner, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
  background-image: -moz-radial-gradient(center top, farthest-corner, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
  background-image: -o-radial-gradient(center top, farthest-corner, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
  background-image: radial-gradient(center top, farthest-corner, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
}
.button:hover:before {
  background-image: -webkit-radial-gradient(farthest-corner, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.03));
  background-image: -moz-radial-gradient(farthest-corner, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.03));
  background-image: -o-radial-gradient(farthest-corner, rgba(255, 255, 255, 0.18), rgba(255, 255,...

JavaScript

$("#products li").draggable({
    appendTo: "body",
    helper: "clone"
  
});
$("#credit").sortable({
    receive: function (event, ui) {
        ui.item.remove();
         var s="PLEASE SELECT ANOTHER BLOCK";
      $("#e1").show();
      $("#e1").html(s);
        setTimeout('$("#e1").hide()',1500);
    }
});
$( "#credit3" ).draggable({
revert: true,
  start: function( event, ui ) {
            var s="PLEASE SELECT ANOTHER BLOCK";
       $("#e1").show();
      $("#e1").html(s);
        setTimeout('$("#e1").hide()',1500);
       }
});
$( "#credit4" ).draggable({
revert: true,
  start: function( event, ui ) {
            var s="PLEASE SELECT ANOTHER BLOCK";
       $("#e1").show();
      $("#e1").html(s);
        setTimeout('$("#e1").hide()',1500);
       }
});
$( "#credit" ).draggable({
revert: true,
  start: function( event, ui ) {
       var s="PLEASE SELECT ANOTHER BLOCK";
      $("#e1").show();
      $("#e1").html(s);
        setTimeout('$("#e1").hide()',1500);
       }
});
$( "#credit0" ).draggable({
revert: true,
  start: function( event, ui ) {
 var s="PLEASE SELECT ANOTHER BLOCK";
      $("#e1").show();
      $("#e1").html(s);
        setTimeout('$("#e1").hide()',1500);
       }
});
$("#shoppingCart1 ol").droppable({
    activeClass: "ui-state-default",
    hoverClass: "ui-state-hover",
    accept:".credit2",
    drop: function(event, ui) {
        var self = $(this);
        self.find(".placeholder").remove();
        var productid = ui.draggable.attr("data-id");
        if (self.find("[data-id=" + productid + "]").length) return;
        $("<li></li>", {
            "text": ui.draggable.text(),
            "data-id": productid
        }).appendTo(this);
             $("#equal").hide();
        
        // To remove item from other shopping chart do this
        var cartid = self.closest('.shoppingCart').attr('id');
        $(".shoppingCart:not(#"+cartid+") [data-id="+productid+"]").remove();
           var isAllFilled = true;
       ...