I have a form with two buttons. The first expands the data entry area (i.e. adds input fields to the existing window). The second is effectively the 'true' submit button that equates to 'go ahead and validate'.
I have seen several references throughout this forum but am confused about the possibilities and the definitive answer as to how I would make my second button the default when the enter key is pressed. Options appear to include, use of tabindex, use javascript, change order of the buttons (which I can't really do).
The symptoms at the moment are that, when the user hits the enter key, the first button is triggered and the data entry area is expanded.
Can anyone help spell it out for me please?
Thanks in advance.
I have seen several references throughout this forum but am confused about the possibilities and the definitive answer as to how I would make my second button the default when the enter key is pressed. Options appear to include, use of tabindex, use javascript, change order of the buttons (which I can't really do).
The symptoms at the moment are that, when the user hits the enter key, the first button is triggered and the data entry area is expanded.
Can anyone help spell it out for me please?
Thanks in advance.