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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T18:12:37+00:00 2026-06-17T18:12:37+00:00

We are using jQuery Unobtrusive validate and MVC4. Our forms have a cancel anchor

  • 0

We are using jQuery Unobtrusive validate and MVC4. Our forms have a cancel anchor that we wanted to use to client-side reset the form.

We are using onFocusOut validation.

If we are focussed on a field that is invalid and press the cancel link the action of losing focus on the input field fires validation.

I know that if it was a submit button we could use a cancel class but that would only cause the submit time validation to not fire. The onFocusOut validation still fires.

We have a solution which involves us trapping onMouseDown on the cancel link, setting a DoNotValidate flag and then turning that flag off after. It works but does seem like a Kludge.

Is it because we are using onFocusOut? How do other people handle cancel when using OnFocusOut?

  • 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-17T18:12:39+00:00Added an answer on June 17, 2026 at 6:12 pm

    I am afraid that there is no clean solution to this other than disabling validation to be performed in the onblur event. You could disable it and perform client side validation only for the onsubmit event. Otherwise the workaround you’ve discovered seems viable.

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

Sidebar

Related Questions

I'm using jQuery Validate Unobtrusive with ASP.NET MVC3 Razor. I have a page with
I have a form with a client side validationsummary. View: <script src=@Url.Content(~/Scripts/jquery.validate.min.js) type=text/javascript></script> <script
I am creating a day range validator using DataAnnotations, jQuery.validate and jquery.validate.unobtrusive. I've already
Im using the built in jQuery validation <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> Works
I am trying to implement optional client side validation using ASP.NET MVC 4, unobtrusive
I'm writing an MVC3 site, and I'm using JQuery unobtrusive validation to validate my
I am trying to using a jquery.validate.unotrusive.js plugin to dynamically created form fields like:
using jquery's .post i send do my php code an object that with var_dump
Using Jquery , I have an array result [<a href=><img src=image1></a>,<a href=><img src=image2></a>] if
<script src=/Scripts/jquery-1.6.2.min.js type=text/javascript></script> <script src=@Url.Content(~/Scripts/jquery.unobtrusive-ajax.min.js) type=text/javascript></script> <script src=/Scripts/jquery.validate.min.js type=text/javascript></script> <script src=/Scripts/jquery.validate.unobtrusive.min.js type=text/javascript></script> @model Izdivac.Models.User

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.