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

  • Home
  • SEARCH
  • 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 6874001
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T04:08:25+00:00 2026-05-27T04:08:25+00:00

Take a look at the following link, you will see I have a simple

  • 0

Take a look at the following link, you will see I have a simple form with various fields that are required. I have put together a small script to validate entry before submission. Normally the random numbers are generated using php but for the example I have just added them manually.

The solution does seem to work but I would prefer as one input is completed the error would disappear. Currently this works for the standard inputs that just require some kind of entry but doesn’t work when an input requires a valid email or sum. If a correct email is entered, but the verify question hasn’t been entered the error still appears on the email field.

http://jsfiddle.net/marcsanders/xgZeV/

Any help much appreciated!

  • 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-27T04:08:26+00:00Added an answer on May 27, 2026 at 4:08 am

    Try the following:

    $('input.required').change(function() {
     $(this).parent('div').removeClass('error');
    });
    

    Updated jsFiddle here.

    You may also consider using a html5 required attribute on elements that are required, rather than using javascript.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Could someone take a look at the following link of a work in progress
Take a look that the following code snippet: A a = null try {
Can you please take a look at following link and let me know how
Please take a look at the following link: http://www.nba.com/warriors/audiotrack_test_000005.html?mark-jackson-on-the-dan This works properly (meaning it
If you take a look at the following product page on a site that
Take a look at the following code: $(document).ready(function() { $('#link').click(function() { alert('1'); }, function()
Please take a look at the following simple code: class Foo { public: Foo(){}
take a look at following simple code : class A; class B { A
Can you please take a look at following link and let me know why
Take a look at the following fiddle: http://jsfiddle.net/DNhAk/14/ When you have an image with

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.