If you’re reacting to the user doing something, you’re using Javascript, not PHP. The fact that your homework has loaded jQuery for you tells you that you should be looking for a jQuery method of modifying the table.
Hints?
.html()
:nth-child()
(Moderators: Flag for moving)