I have a form with two text boxes, one select drop down and one radio button. When the enter key is pressed, I want
form
So maybe the best solution to cover as many browsers as possible and be future proof would be
if (event.which === 13 || event.keyCode === 13 || event.key === "Enter")