Why is this not working

Why is this not working

I could not understand why is this not working. I wanted a new raw to be added whenever the last row is clicked.

exmple is here