Julian4145
Programmer
Hi All,
Been working on this a couple days now and can't seem to find a way around it. Apparently, when a form contains only a single text field and a submit button, hitting the enter key does not pass the submit button's name/value pairs. The only way the user can submit the form is too click the submit button with the mouse.
From what I have read, this seems to have been done by design in IE. (See
All I am looking for is to have a form with one text box and one submit button. When the user enters a value in the text box and presses the enter key, some minor javascript validation is done to ensure the text box is not empty and the value is a number and then completes a search. The javascript validation works fine and the search works fine when the submit button is clicked, but neither the javascript validation nor the search executes when the user hits enter.
Does anyone have a way around this?
Thanks in advance
Julian
Been working on this a couple days now and can't seem to find a way around it. Apparently, when a form contains only a single text field and a submit button, hitting the enter key does not pass the submit button's name/value pairs. The only way the user can submit the form is too click the submit button with the mouse.
From what I have read, this seems to have been done by design in IE. (See
All I am looking for is to have a form with one text box and one submit button. When the user enters a value in the text box and presses the enter key, some minor javascript validation is done to ensure the text box is not empty and the value is a number and then completes a search. The javascript validation works fine and the search works fine when the submit button is clicked, but neither the javascript validation nor the search executes when the user hits enter.
Does anyone have a way around this?
Thanks in advance
Julian