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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T11:43:48+00:00 2026-06-14T11:43:48+00:00

I want to use jQUery.validate in a MVC4 project. I have a wizard setup

  • 0

I want to use jQUery.validate in a MVC4 project. I have a wizard setup (from stepy) where I have 6 steps to go through. On each step I want to add validation. Now the validation works until appearantly I use a checkbox.
On step 2 I have a checkbox. When I then want to continue to step 3 it gives me the error:
Cannot read property name of undefined.

When I remove the checkbox all works fine. Also when I run the HTML it works but if I put it into MVC razor it fails.

Any help is appreciated.

thanks

This is the HTML + jQuery:

<!DOCTYPE html>

<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="Pragma" content="no-cache">
    <meta http-equiv="Expires" content="-1">

    <title>jQuery Stepy - A Wizard Plugin</title>

    <link type="text/css" rel="stylesheet" href="css/jquery.stepy.css" />
    <script type="text/javascript" src="js/jquery-1.8.2.js"></script>
    <script type="text/javascript" src="js/jquery.validate.min.js"></script>
    <script type="text/javascript" src="js/jquery.stepy.min.js"></script>
<script type="text/javascript">
        $(function() {

            $('#custom').stepy({
                backLabel:  'Backward',
                block:      true,
                errorImage: true,
                nextLabel:  'Forward',
                titleClick: true,
                validate:   true
            });


            // Optionaly
            $('#custom').validate({
                 rules: {
                    'checked':      'required',
                }, messages: {

                    'checked':  { required:  'error' },
                             }
            });
        });
    </script>

</head>
<body>
    <div id="header">

    </div>

    <div id="content">




        <form id="custom">
            <fieldset title="Thread 1">
                <legend>description one</legend>

                <label>User:</label>
                <!-- Hidden fields are not focused.  -->
                <input type="hidden" name="hidden" />

                <!-- Disabled fields are not validated.  -->
                <input type="text" value="wbotelhos" size="40" name="user" disabled="disabled" />

                <label>E-mail:</label>
                <input type="text" size="40" name="email" />
                <input type="checkbox" name="checked" /> Checked?

                <label>Naa:</label>
                <input type="text" size="40" name="Naam" />

                <label>Newsletter?</label>
                <input type="radio" name="newsletter" /> Yep
                <input type="radio" name="newsletter" /> Nop

                <label>Password:</label>
                <input type="password" name="password" size="40" />
            </fieldset>

            <fieldset title="Thread 2">
                <legend>description two</legend>

                <label>Nick Name:</label>
                <input type="text" size="30" />

                <label>Bio:</label>
                <textarea name="bio" rows="5" cols="60"></textarea>
            </fieldset>

            <fieldset title="Thread 3">
                <legend>description three</legend>

                <label>Birthday:</label>
                <select name="day">
                    <option></option>
                    <option>23</option>
                </select>

                <select>
                    <option>10</option>
                </select>

                <select>
                    <option>1984</option>
                </select>

                <label>Site:</label>
                <input type="text" name="site" size="40" />
            </fieldset>

            <input type="submit" class="finish" value="Finish!" />
        </form><br/>


</body>

  • 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-14T11:43:50+00:00Added an answer on June 14, 2026 at 11:43 am

    The code in the question is missing a closing div tag.

    Other than that it there is no problem with it. The question is an example from stepy on github which does seem to work with check boxes. I would try to get the examples working correctly and check that you are referencing all the js files.

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

Sidebar

Related Questions

I want to validate text-boxes in JQuery bit I want to use regex for
I want use jQuery in my project. I know the javascript_include_tag calls the jQuery
I want to use jQuery to pull information from my database when I click
I have a problem with jQuery Validator. I want to use required property on
I want to use a jQuery/JavaScript function to validate the input of a textbox.
I use bassistance jQuery validation plugin to validate my inputs. I want to add
I'm trying to use 'errorPlacement' from jQuery Validation DOCS : $(#myform).validate({ errorPlacement: function(error, element)
I have some problem with my form. i want to use jquery ajax to
I use the jQuery Validate plugin to validate a form, and I want a
I'm using jquery validate v1.7 and jQuery v1.4.2 and I have to use .live

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.