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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T20:26:41+00:00 2026-06-06T20:26:41+00:00

I an using jQuery validation plugin in asp.net 4.0 application. Click here to see

  • 0

I an using jQuery validation plugin in asp.net 4.0 application.

Click here to see plugin

I have two button on page 1)Submit 2)Cancel

When i click on Submit button this validate the form and show appropriate error message.

I used Cancel button to go back to previous page.

But now when i click on Cancel button it also show the error message.

I don’t want to validate the form on Cancel button click.

How can we do that.

Thanks.

  • 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-06T20:26:43+00:00Added an answer on June 6, 2026 at 8:26 pm

    Without seeing your code, I would assume that your “Cancel” button is also input[type=submit]. Change it to input[type=button] instead, then handle it appropriately.

    For example, your “Submit” button may look like this:

    $(".selector").validate({
       submitHandler: function(form) {
           // do other stuff for a valid form
         form.submit();
       }
    });
    

    Whereas, your “Cancel” button is like:

    $("#cancel").click(function() {
         history.back(); // or window.location.href = ...your link
       }
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a form using jquery validation plugin. My submit button has an ajax
I am using JQuery validator plugin on ASP.NET MVC Page as below. 1). Here
I am using asp.net mvc 2.0 and jquery validate 1.7 ( http://bassistance.de/jquery-plugins/jquery-plugin-validation/ ) What
I have some strange issue using jQuery Validation plugin. Firs of all here is
i am using asp.net-mvc3 helpers and the jquery validation plugin (what comes out of
I am using Asp.Net Mvc3 and the unobtrusive jquery validation. I'd like to have
I'm using jQuery validation plugin. I have two images: first background of label, when
I am using jquery validation plugin for form validation. I have added a custom
ASP.NET MVC's Html.BeginForm() seems to work with jQuery validation plugin but the validation plugin
I am using jquery validation plugin to validate my form. I have one field

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.