Click here to Skip to main content
15,909,325 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have this code below that allows me to move the value from Green Fruits Table to Random Fruits Table and vice versa but the problem is that after I move all the value from Green Fruits Table back to Random Fruit Table all the value comes back as a single row but I want it to return the value like how it was originally. Is there any simple way to fix this Any suggestion would be greatly appreciated?

What I have tried:

Here is my JSFiddle[^]
Posted
Updated 2-Jul-18 5:16am

1 solution

Hi,
Initially Fruits grouped like
<tr>
  <td></td>
  <td></td>
  <td></td>
  <td></td>
</tr>


<pre><tr>
  <td></td>
  <td></td>
  <td></td>
  <td></td>
</tr>


But after add and remove all elements are appear in td

<td></td>
  <td></td>
  <td></td>
  <td></td>
  <td></td>
  <td></td>
  <td></td>
  <td></td>


so only it appear like in single row.
You need to group in 4 td in tr like this
<tr>
  <td></td>
  <td></td>
  <td></td>
  <td></td>
</tr>


then only it will come 4 by 4
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900