title: How to move image from one table's cell to another table's cell when clicked
body: <p>I know it sounds very basic, but I am new to Javascript.</p>
  
  <p>Here is my problem: I have two tables - Table1 has only one cell and table2 has one row and 4 columns, containing 4 images (clickable). What I want to do is when I click on any of the images, it should go to the cell of Table1. If I click on another image (in Table2), it should replace the first image in Table1 with the second image.</p>
  
  <p>I think we need two methods in Javascript - one for moving the image and another for retrieving the image in the cell of the table.</p>
  
  <p>Any help is always helpful.</p>