Enter key in textbox submits form

Results 1 to 2 of 2

Thread: Enter key in textbox submits form

  1. #1
    Join Date
    Dec 1969

    Default Enter key in textbox submits form

    I have a form with a textbox and a &#039Go&#039 button. What I would like is for the user to be able to hit Enter after typing a URL in the textbox and have it submit the form rather than having to click the buton. Any ideas?<BR>

  2. #2
    Jason Miller Guest

    Default RE: Enter key in textbox submits form

    Replace the textarea with an input type=text. Textareas are explicitly supposed to accept CRs (and can even create the automagically) so that your users can format massive amounts of input. If you&#039re just getting a URL, a textarea is overkill. If you want multiple URLs, select a character (:,,!, etc) which you and your users can use to tell where one piece of information stops and the next piece starts.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts