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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T09:12:41+00:00 2026-05-29T09:12:41+00:00

I am using mvc3 with the KendoUI window control to open up a partial

  • 0

I am using mvc3 with the KendoUI window control to open up a partial view in a modal window.

I have a form with the popup that I am trying to validate before sending the form back to the server.

I have a click event on my main view that looks like

  $("#submit-campaign").live("click",function () {
    var form = $("#Send");
    $.validator.unobtrusive.parse($(form));
     form.validate();
    if (form.valid()) {
        console.log("valid");
    } else {
        console.log("invalid");
    }

});

However its always been returned as true even if I haven’t added values to some of the required.

I have referenced the 3 javascript files like

<script src="@Url.Content("~/Scripts/jquery.unobtrusive-ajax.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

What do I need to do so I am getting the actual validation state clientside from the popup?

  • 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-29T09:12:41+00:00Added an answer on May 29, 2026 at 9:12 am

    The correct way to check validation would be.

    $("#submit-campaign").live("click",function () {
        var form = $("#Send");
        $.validator.unobtrusive.parse($(form));
        var val = form.validate();
        if (val.valid()) {
            console.log("valid");
        } else {
            console.log("invalid");
        }
    
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using MVC3, C#, and the Razor View Engine: I have a form that has
Using MVC3 Razor, I have a partial view with some text, two text boxes
I'm using MVC3 razor, and I'm trying to pass an object to a partial
Using MVC3 I am trying to accomplish the following. I have a table which
I'm using MVC3 and I wanted to use a partial view to create dynamic
I'm using MVC3 w/ Razor and I have a model that has quite a
I'm using MVC3 - i have a javascript function that uses jQuery get() to
I am trying to build a sample for myself using MVC3, Razor view engine
Using MVC3 I have found that setting a SelectList's selected value correctly renders the
Using MVC3.NET I have a file upload method in a controller that works fine

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.