Hello,
I have a form with multiple submit buttons (all the same name, different values - for php postprocessing) and a text field.
What I want:
user enters data and hits enter and the form is submitted by the submit button which i 'preselect', in this case button[7].
What happens:
i have managed to set the focus onto the desired submit button by using
but when the textfield gets the focus, the 'preselection'
jumps to button[0] (first in array) and is therefore used, when the user hits <[enter\].
Any idea how to set 'preselection' explicitly?
Thanks!
Thomas
I have a form with multiple submit buttons (all the same name, different values - for php postprocessing) and a text field.
What I want:
user enters data and hits enter and the form is submitted by the submit button which i 'preselect', in this case button[7].
What happens:
i have managed to set the focus onto the desired submit button by using
Code:
window.dataform.button[7].select();
but when the textfield gets the focus, the 'preselection'
jumps to button[0] (first in array) and is therefore used, when the user hits <[enter\].
Any idea how to set 'preselection' explicitly?
Thanks!
Thomas