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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T12:42:21+00:00 2026-05-24T12:42:21+00:00

I am using jQuery Validation plugin ( http://bassistance.de/jquery-plugins/jquery-plugin-validation/ ) I have a very odd

  • 0

I am using jQuery Validation plugin ( http://bassistance.de/jquery-plugins/jquery-plugin-validation/ )

I have a very odd scenario in front of me.

I have one form, with 5 different submit buttons

<form id="frm1" name="frm1" method="post" action="save.php">
  ------- input fields here---
  <input type="submit" name="submit" value="update account info">

  ------- input fields here---
  <input type="submit" name="submit" value="update address info">

  ------- input fields here---
  <input type="submit" name="submit" value="update credit-card info">

  ------- input fields here---
  <input type="submit" name="submit" value="update bank info">

  ------- input fields here---
  <input type="submit" name="submit" value="update other info">
</form>

Now, for each submit button, I need to validate a few fields (and not all fields)

Say for “update account info” submit, I need to validate following input fields with following ids:

 cust_fname
 cust_lname
 cust_age

Say for “update other info” submit, I need to validate following input fields with following ids:

 married
 childerns

How can I achieve following?

  • 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-24T12:42:23+00:00Added an answer on May 24, 2026 at 12:42 pm

    create 5 separate forms is the most easy way to do this. Then you can bind a different specific validation to each form.

    Or you can bind a validation to each click on a submit button.
    assuming you update your submitbutton to:

      <input type="submit" id="button_1" name="submit" value="update account info">
    

    Then with jquery you can bind this with:

    $("#button_1").live("click", function() {
        $("#frm1").validate({
            rules: {
                cust_fname: "required", // of course set different options for every field
                cust_lname: "required", 
                cust_age: "required"
            }
        }); 
    });
    

    And do this for every button.

    edit: Live has been deprecated.

    $("#button_1").on("click", function() {
        $("#frm1").validate({
            rules: {
                cust_fname: "required", // of course set different options for every field
                cust_lname: "required", 
                cust_age: "required"
            }
        }); 
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using the jQuery validation plugin found here: http://plugins.jquery.com/project/validate In my form I have
I'm using a great jQuery contact form validator from bassistance (http://bassistance.de/jquery-plugins/jquery-plugin-validation/) is exactly what
I am using jQuery Validation Plugin (http://bassistance.de/jquery-plugins/jquery-plugin-validation/) I have wrote following rule jQuery.validator.addMethod(valueNotEquals, function(value,
I have been using jquery validate plugin http://bassistance.de/jquery-plugins/jquery-plugin-validation/ . It has been working successfully,
I am using jQuery validation plugin ( http://bassistance.de/jquery-plugins/jquery-plugin-validation/ ) I have following structure: <select
I am using jQuery validation plugin (http://bassistance.de/jquery-plugins/jquery-plugin-validation/) Following code is a part of form
I have two password fields pwd1 and pwd2 I am using jquery plugin http://bassistance.de/jquery-plugins/jquery-plugin-validation/
Fields on the site are validated using JQuery Validate: http://bassistance.de/jquery-plugins/jquery-plugin-validation/ When there's one e-mail,
i'm using this plug in to validate a form http://bassistance.de/jquery-plugins/jquery-plugin-validation/ I've got 3 fields,
I'm using CKEditor on a textarea and the jQuery validation plugin ( http://bassistance.de/jquery-plugins/jquery-plugin-validation/ )

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.