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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T12:36:01+00:00 2026-05-18T12:36:01+00:00

Basically, when I click submit, it sends me to the next page instead of

  • 0

Basically, when I click submit, it sends me to the next page instead of preventing the post. It’s not even validating anymore, so that needs to happen too. How would I go about fixing this?

Javascript:

<script language="javascript" type="text/css">
jQuery.validator.addMethod(
  "noStateSelected",
  function(value, element) {
    if (element.value == "")
    {
      return false;
    }
    else return true;
  },
  ""
  );

  jQuery.validator.messages.required = "";


  $(document).ready(function(){
      $("#newMemberForm").validate({
        invalidHandler: function(e, validator) {
            var errors = validator.numberOfInvalids();
            if (errors) {
                var message = errors == 1
                    ? 'You missed 1 field. It has been highlighted below.'
                    : 'You missed ' + errors + ' fields.  They have been highlighted below.';
                $("div.error span").html(message);
                $("div.error").show();
            } else {
                $("div.error").hide();
            }
        },
        submitHandler: function() {
            $(#newMemberForm).submit();
        },
        errorLabelContainer: "#messageBox",
        wrapper: "li",
        onkeyup: false,
        submitHandler: function() {
            $("div.error").hide();
            $("label.error").remove();
        },
        rules: {
            sponsor: "required",
            username: "required",
            password: "required",
            first_name: "required",
            last_name: "required",
            phone_number: "required",
            tax_id: "required",
            address_1: "required",
            city: "required",
            postal_code: "required",
            profile_stateList: {
                noStateSelected: true
            },
            email: {
                required: true,
                email: true
            },
            terms_conditions: "required"
        },
        messages: {
                email: {
                    email: "Your email address must be in the format of name@domain.com ."
            },
            terms_conditions: "You must agree with the conditions."
        }

    });
  });
  </script>

HTML:

<form name="newMember" id="newMemberForm" action="~secure_url~/cgi-bin/xflow/newuser.cgi" method="POST"> 
 ....
 [Conditional input text box required if it exists]
 ...
</form>
  • 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-18T12:36:01+00:00Added an answer on May 18, 2026 at 12:36 pm

    My stupid issue, I made the type text/css. It has been fixed.

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

Sidebar

Related Questions

Basically I've got an update query that runs when you click a submit button.
A while back, online apps used to say, do not click submit more than
Basically I am trying to restart a service from a php web page. Here
Basically I’ve heard that certain conditions will cause .NET to blow past the finally
Basically I'm trying to accomplish the same thing that mailto:bgates@microsoft.com does in Internet Explorer
I have an application that supplies long list of parameters to a web page,
I have a page that has several ajax submission forms. Each form has a
Here is my jQuery code: <script type=text/javascript> //<!-- $(document).ready(function() { $('input[type=submit]').click(function() { $.ajax({ type:
I have this interesting jQuery function. It basically adds a click handler to link,
I'm currently developing an additional page to an already existing website. Actually that part

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.