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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T11:33:01+00:00 2026-06-02T11:33:01+00:00

I am new to Jquery. I am working in a form with 14 fields

  • 0

I am new to Jquery. I am working in a form with 14 fields

First 7 fields are visible and next 7 are toggled on the basis of a button click in a div now in total there are 7 fields which are ‘required’. 3 from first 7(visible part) and 4 from toggling div.

The problem is that when the toggling div is visible JQuery’s validation plugin shows the required message if I miss any of the 7 fields but the same plugin just checks the validation of only 3 fields (which are in visible part of the form) when the div is hiddenThis is the normal condition.

how to make make the validation of full form even when the part of the form is hidden
this is condition 2
Now if I delete the value of text box Address 1 and hides the Address Part and click SAVE it will not prompt for required thing for Address 1 even when I kept it ‘required’

  • 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-02T11:33:02+00:00Added an answer on June 2, 2026 at 11:33 am

    The possible reason can be that there is ignore: ':hidden' line in jquery.validate.unobtrusive.js file. Just remove that line.

    After 1.9.0 version it was default behaviour. If the line doesn’t exists in file(I’m not sure) you can fix that manually by adding

    $.validator.setDefaults({ ignore: [] });
    

    As you can see here

    Another change should make the setup of forms with hidden elements
    easier, these are now ignored by default (option “ignore” has
    “:hidden” now as default
    ). In theory, this could break an existing
    setup. In the unlikely case that it actually does, you can fix it by
    setting the ignore-option to “[]” (square brackets without the
    quotes).

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

Sidebar

Related Questions

I am fairly new to jquery and I am working with jsp and struts
Alright have been working to switch to jQuery 1.7's new and improved .on() function
I've got the new autocomplete widget in jQuery UI 1.8rc3 working great in Firefox.
I'm currently working on a new Magento template, and I'm facing problems with jQuery.
I have application that brings response via Ajax and creates 5-20 new jQuery click
I am trying to validate the form fields by creating my own jquery function
Hi I use jQuery validator for one form. It was working nice until today.
When writing a new jQuery plugin is there a straightforward way of checking that
Using jQuery UI 1.8rc3 combined with the new jquery.effects.fade.js code, I've been able to
I've been trying to use the new jquery-ui, and all but the resizable function

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.