How to drag multiple cells of a table , into multiple items of another table , where each cell of a table is connected respectively with each cell of the other table?

How to drag multiple cells of a table , into multiple items of another table , where each cell of a table is connected respectively with each cell of the other table?

I want to select multiple cells of a table A and drag them into the respective cells of the table B. When I drop them I want that the cells of table B to change class into " dropped". So each cell I dragged is connected with the cell of table B ,where it is dropped.