I need help with duplicating div when enter is hit while the input element in the div is in focus
so there is a div which has an input element in it. I need to duplicate this div and place it right below the existing div whenever enter is hit while the cursor is in the input element.
Solutions which don’t use jquery will be of great help.
Thanks
try this
Demo