I have a table with form inputs, at the bottom of the table, I have an "Add row" button. My issue is I'm starting in an input box, and hitting tab to move to this <a>
add row button. When I hit enter with the link selected it's not triggering my .click(function ()
.
How can I trigger a function when the button is clicked, or when it's tabbed over to and you hit enter?
See this demo: https://jsfiddle.net/kpkammer/ftdez3rb/
UPDATE
I don't want enter anywhere on the page to trigger this function, just when the button is highlighted and you hit enter on the highlighted link