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 6559961
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T13:23:55+00:00 2026-05-25T13:23:55+00:00

I have am using the jQuery validation plugin (1.8.1 from MS CDN) to validate

  • 0

I have am using the jQuery validation plugin (1.8.1 from MS CDN) to validate input fields on the submit of a form. The script is 1000+ lines in all and although gives a nice approach to validating fields (yes I check with php after the fact as well) I am thinking about tossing it regardless. I have got it to a point where the script runs well.

Update – final code, working.

Code has been updated but I am still running into issues. Now, the submit function works but it never validates the fields. (I know it is reaching the fields with a simple alert() test placed after the length check:

    <script type="text/javascript">
$(function(){

  $('#page_submit').click(function() {
    $('#signupform').submit(); 
  });

  if ($("#signupform").length > 0) { 
    $("#signupform").validate({ 
        rules: {
            fname: 'required',
            lname: 'required',
            websitename: 'required',
            address: 'required',
            city: 'required',
            state: 'required',
            zip: { required: true, digits: true },
            password: 'required',
            passwordconf: 'required',
            email: { required: true, email: true }
        },
        messages: {
            fname: 'Your first name is required.',
            lname: 'Your last name is required.',
            email: { required: 'Your email address is required.',
            email: 'Please enter a valid email address.'}
        },
        submitHandler: function(form) {
            $('body').append('<div id="cboxOverlay"></div>');
            $('#cboxOverlay').show();
            form.submit();
        }
    });
  }
});
</script>

NOTE: The above code has been modified and now works. The submit() function MUST be added after the click function in this scenario because we are clicking an image and adding the submit action, not a submit button within a form.

Previously, I had action placed on the button image itself but moved up into the jquery statement to prevent obstrusive JS. When clicking the button now, the page submits automatically and never runs the validation.

  • 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-25T13:23:55+00:00Added an answer on May 25, 2026 at 1:23 pm

    You still have to submit the form, yes?

        submitHandler: function(form) {  
            $('body').append('<div id="cboxOverlay"></div>');
            $('#cboxOverlay').show();
            form.submit();  //*******************
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a form using jquery validation plugin. My submit button has an ajax
I am using jquery validation plugin for form validation. I have added a custom
I'm using jQuery's validation plugin and looking to validate many dynamically added text fields
I'm using a great jQuery contact form validator from bassistance (http://bassistance.de/jquery-plugins/jquery-plugin-validation/) is exactly what
I am using jquery validation plugin 1.9.0 . I have downloaded the plugin from
I am using jquery-1.4.2 library and jquery.validate.js plugin to validate a very simple form.
I have a simple html form that I've added validation to using the JQuery
I'd like to validate a form using the jquery validate plugin, but I'm unable
I'm using the jQuery Validation plugin on my forms. I have some groups of
I have a mixed client-side/server-side validation using jQuery validation plugin. The validation happens on

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.