Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

submit using Enter key help?

Status
Not open for further replies.

croiva25

Technical User
Dec 3, 2003
125
AU
Hi guys, I have just been reading some posts about this subject and in one of them I have found that you can use javascript to submit using Enter key but only if you have one field, is that correct?



Also would somebody have an example of submitting a number of fields using the Enter key submission on the last input field?



And if that is possible,if the submission can be done from Enter key how would I go about redirecting the cursor and giving the focus to the first field on the page after Enter has been hit to submit, all we want to do is be able to use the page and submit data without using the keyboard, or using it as little as possible (don't ask!)



Any help is appreciated.



Thanks
 
I have never heard of that restriction before. As far as I know, it is automatic to submit the form if you press enter and there s a submit button in the form. Doesn't matter how many fields you have.

Both of these questions would probably be more suited for the javascript forum though, as neither are inherently ASP-related.

-T

barcode_1.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top