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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T16:54:59+00:00 2026-06-03T16:54:59+00:00

I am working on a new layout for a page which is a wizard

  • 0

I am working on a new layout for a page which is a wizard based ordering system for a client. They order sets of materials but these materials can be grouped together during the order process such that they can order 10 widgets in any combination of red, blue, and/or, green for example. The sum total of the fields can’t exceed the pre-calculated maximum. Most of the materials are a simple single choice per group.

I’ve used jQuery validate in other pages and I have used the addClassRules method to validate all input elements on the page and it’s worked just fine. The current example I am working on is baffling me because it only catches the first validation failure upon form submission but after submission it will usually catch others, but never the full list of validation failures.

Here’s my jsfiddle sample so you can see what I am putting together: http://jsfiddle.net/brianmat/2nV5u/

I use an error counting snippet that has worked on several sites without a problem. In this example I only get 1 error even if all 7 text boxes have been left blank.

My only main difference here is I am doing a rowspan to group my items, but I can’t see where that would be a problem. I know this will end up being something pretty straightforward, but I’m just hitting a wall on it at this point.

The jQuery validate code is nothing fancy:

 $.validator.addClassRules({
    NumericInput: {
        required: true
    }
});

$("#theForm").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();
        }
    },
    errorPlacement: function(error, element) {},
    submitHandler: function(form) {
        $("div.error").hide();
        form.submit();
    }
});

The remaining code simply handles the subtotaling and numeric only data input.

I’m completely open to a different approach to handling this problem, so scrapping my current code and finding something that does work properly isn’t a problem. I’d rather not try to fit a square peg into a round hole if that is what I am ultimately doing.

  • 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-06-03T16:55:00+00:00Added an answer on June 3, 2026 at 4:55 pm

    Don’t forget that pesky name attribute:

    <input id="Text1" name="Text1" type="text" class="NumericInput group1" materialgroup="1" />
    <!--              ^^ -->
    

    Updated example: http://jsfiddle.net/2nV5u/6/

    Also, consider using data-* attributes instead of adding your own attributes to elements (i.e. data-materialgroup instead of materialgroup).

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

Sidebar

Related Questions

I am new to Symfony. I created a layout page in which I have
I'm working on a new layout for my site that uses a header, footer
I am working on a layout for a new site, and I'm having some
I am working on layout for my web page and I've occured a problem
I've just done a new html build of a website which is working and
I am working on new layout of my site & I come across GIZMODO
I'm working on an App, which contains a Table Layout in a Scrollview. I
In the course of my career I've noticed that developers working on new functionality
In Git I can do this: 1. Start working on new feature: $ git
Im new to working with Domain Models so forgive me for asking an elementary

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.