I have a form with some
<button>
elements and a normal
<input type="submit">
button to submit the form.
However, when I press Enter when I’m in a textfield, the form does not get submitted but much rather the first Element is “pressed”.
How can I change this behavior?
You can use javascript to capture that the
Enterkey was pressed and submit the form.See this example.
For a complete answer, could you please post your HTML?