>Simple question. I have a form where the user needs not use any more than
>one line in each text feild. Therefore I would like to submit the form if
>the user hits the enter or return key, else they will hit the post button..


You might be able to do it by trapping the keydown and only passing 
the key if it's not a Return or an Enter, but another way to do it is 
to watch the number of lines there are in the field. If it is more 
than one, then post line 1.


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to