Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

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

Posted on 2009-05-03
3
399 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
how to debug htl and js pages 8 38
Html form and modal / img src -problem 3 29
parse url to form? 7 25
Powershell script does not exit 4 25
Showing your events from Google Calendar in Google Maps Why? I travel all week and I thought it would be ideal if staff in office knew where I was based on my calendar. (OK real reason: my son wanted to see where I would be working, and I thoug…
This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…

840 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