Solved

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

Posted on 2009-05-03
3
404 Views
Last Modified: 2012-05-06
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
Comment
Question by:alicia1234
  • 2
3 Comments
 
LVL 30

Accepted Solution

by:
IanTh earned 250 total points
ID: 24290373
0
 
LVL 30

Assisted Solution

by:IanTh
IanTh earned 250 total points
ID: 24290389
0
 

Author Comment

by:alicia1234
ID: 24290800
Thanks! Worked great!
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Technology Resume 7 67
Open dialog with server side controls in it 3 46
really easy css change help please 4 32
Html date format 9 20
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

735 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question