After successfully implementing a jquery drag and drop with selection capabilities to create a grid-like interface, I decided to add a merge function for the div elements. However, I encountered an issue when trying to merge divs B & F in my current code.
The problem is that when I attempt to merge B & F, the last div "jumps" out of the grid, leaving white space behind.
This is how I'm currently merging the divs based on their index positions on the grid:
cells[0].append(cells[1].html());
cells[1].remove();
If anyone could provide some assistance with this issue, I would greatly appreciate it. This small hiccup is hindering me from completing this project, and I am feeling quite frustrated by it.
Thank you in advance for any help!