How to clone the highlighted row data to another table when ENTER key is pressed.
I am having a html data table with a highlight class to highlight the rows when I press the up-down arrow keys when the table is in focus. I have another table which is blank and I want to add the highlighted rows to the 2nd table when I press the ENTER key. after many tries I am not getting what I want. This is my code what I have tried :