Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 940679
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T21:59:41+00:00 2026-05-15T21:59:41+00:00

I have a simple form. Input fields, checkboxes, radio buttons and finally SUBMIT button.

  • 0

I have a simple form.

Input fields, checkboxes, radio buttons and finally SUBMIT button.

I use jQuery to perform AJAX validation, however when a user presses ENTER inside the input field it submits the form!

How do I stop this from happening on this form (not all input fields)?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T21:59:42+00:00Added an answer on May 15, 2026 at 9:59 pm

    suppose your inputs for which you don’t want to submit on enter has class noSubmit then use this code:

    $(function(){
         $("input.noSubmit").keypress(function(e){
             var k=e.keyCode || e.which;
             if(k==13){
                 e.preventDefault();
             }
         });
     });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 500k
  • Answers 500k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer With simulated annealing, you want to make neighbour states as… May 16, 2026 at 2:07 pm
  • Editorial Team
    Editorial Team added an answer You could load the URLs into an array and then… May 16, 2026 at 2:07 pm
  • Editorial Team
    Editorial Team added an answer You need to add an UpdatePanel within pnlModalContainer. May 16, 2026 at 2:07 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I have a very simple web form which consists of labels and input fields,
I'm trying to create a fairly simple form that has a few checkboxes and
I have a very simple PHP form, which shows a checkbox, and will store
I have a series of checkboxes and input type=text areas, wherein I need to
Say I want to have a simple web app that takes some user input,
I am trying to create simple user registration form. I have an index.html file
this is a small, but very annoying , glitch in my form. I have
I'm cleaning up a simple form that has a Start Date textbox and an
I am only 2 days into jquery so I'm probably making a simple error
I have an input text field that needs to be limited as to what

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.