Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 430
  • Last Modified:

How do I disable a carriage return from submitting a form and how do I set focus?

I have a form with one field in it. If I enter a value in the field and hit tab, it just takes the focus off the field. I want the carriage return to do the same thing. Currently, the carriage return submits the form.

Also, when the user comes into the form, I want to set the focus on the field (move the cursor to it).

I know this should be easy, but I've searched for a solution and haven't found it. And I'm brain dead right now and under a deadline so I need help!

Thanks.
0
alicia1234
Asked:
alicia1234
  • 2
2 Solutions
 
alicia1234Author Commented:
Thanks! Worked great!
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now