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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T03:36:44+00:00 2026-05-15T03:36:44+00:00

I am experiencing some confusion with jquery.validate.js First of all, what is MicrosoftMvcJqueryValidation.js. It

  • 0

I am experiencing some confusion with jquery.validate.js

First of all, what is MicrosoftMvcJqueryValidation.js. It is referenced in snippets on the web but appears to have dissapeared from the RTM MVC2 and is now in futures. Do I need it?

The reason I’m asking is that I’m trying to use the validator with MVC and I can’t get it to work. I defined my JS as:

$(document).ready(function () {
     $("#myForm").validate({
                rules: {
                f_fullname: { required: true },
                f_email: { required: true, email: true },
                f_email_c: { equalTo: "#f_email" },
                f_password: { required: true, minlength: 6 },
                f_password_c: { equalTo: "#f_password" }
            },
            messages: {
                f_fullname: { required: "* required" },
                f_email: { required: "* required", email: "* not a valid email address" },
                f_email_c: { equalTo: "* does not match the other email" },
                f_password: { required: "* required", minlength: "password must be at least 6 characters long" },
                f_password_c: { equalTo: "* does not match the other email" }
            }
        });

});

and my form on the view:

     <% using (Html.BeginForm("CreateNew", "Account", FormMethod.Post, new { id = "myForm" }))
        { %>
    <fieldset>
           <label for="f_fullname">name:</label><input  id="f_fullname"/>
           <label for="f_email"><input  id="f_email"/>
          ...etc...
          <input type="submit" value="Create" id="f_submit"/>
     </fieldset>
   <% } %>

and the validation method gets called on .ready() with no errors in firebug. however when I submit the form, nothing gets validated and the form gets submitted. If I create a submitHandler() it gets called, but the plugin doesn’t detect any validation errors (.valid() == true)

What am I missing?

  • 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-15T03:36:44+00:00Added an answer on May 15, 2026 at 3:36 am

    The MVC/jQuery validation glue file is located in the MVCFutures section of the source code. You can get the code at CodePlex. You shouldn’t need it unless you are planning to use the DataAnnotations attributes with your models. The problem that you are having is likely due to not having names on your inputs as well as ids. I believe that the jQuery validation plugin uses names, not ids to match with the rules.

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

Sidebar

Related Questions

We are experiencing some slowdowns on our web-app deployed on a Tomcat 5.5.17 running
Wanting to implement authentication by client certificates I am experiencing some issues. First some
Im experiencing some lag when I create a Web Application Starter Project when it
I am experiencing some confusion in the use and purpose of Spring's DataBinder and
I am experiencing some strange behavior with SQL Server CE 3.5 SP2. I have
I am experiencing some weird behavior with an android app I have been working
I am experiencing some strange behavior in my datagrid when I have a second
I have the following class in a Windows Service that is experiencing some vary
I've experiencing some troubles when running applications in Visual Web Developer 2010 with the
I am experiencing some unexpected behavior. I have added a custom filed of Rating

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.