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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T14:32:02+00:00 2026-05-27T14:32:02+00:00

In the new version of jQuery validation plugin 1.9 by default validation of hidden

  • 0

In the new version of jQuery validation plugin 1.9 by default validation of hidden fields ignored. I’m using CKEditor for textarea input field and it hides the field and replace it with iframe. The field is there, but validation disabled for hidden fields. With validation plugin version 1.8.1 everything works as expected.

So my question is how to enable validation for hidden fields with v1.9 validation plugin.

This setting doesn’t work:

$.validator.setDefaults({ ignore: '' });
  • 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-27T14:32:03+00:00Added an answer on May 27, 2026 at 2:32 pm

    The plugin’s author says you should use “square brackets without the quotes”, []

    http://bassistance.de/2011/10/07/release-validation-plugin-1-9-0/

    Release: Validation Plugin 1.9.0:
    “…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).”

    To change this setting for all forms:

    $.validator.setDefaults({ 
        ignore: [],
        // any other default options and/or rules
    });
    

    (It is not required that .setDefaults() be within the document.ready function)

    OR for one specific form:

    $(document).ready(function() {
    
        $('#myform').validate({
            ignore: [],
            // any other options and/or rules
        });
    
    });
    

    EDIT:

    See this answer for how to enable validation on some hidden fields but still ignore others.


    EDIT 2:

    Before leaving comments that “this does not work”, keep in mind that the OP is simply asking about the jQuery Validate plugin and his question has nothing to do with how ASP.NET, MVC, or any other Microsoft framework can alter this plugin’s normal expected behavior. If you’re using a Microsoft framework, the default functioning of the jQuery Validate plugin is over-written by Microsoft’s unobtrusive-validation plugin.

    If you’re struggling with the unobtrusive-validation plugin, then please refer to this answer instead: https://stackoverflow.com/a/11053251/594235

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

Sidebar

Related Questions

http://plugins.jquery.com/project/color This plugin is buggy. I heard there is a new version, where is
Using the new version of the substance look and feel for Java, the connecting
I'm using a a jQuery plugin to evaluate password strength. It gives a graphical
i see there is a new version of the jquery datepicker http://www.kelvinluck.com/assets/jquery/datePicker/v2/demo/ i dont
I'm currently using the jQuery HighlightFade plugin and can't seem to find if anyone
is there anyone who have experienced problems using the latests jQuery version with one
A recent new jQuery version has been released, the jQuery v1.4. You can read
Is there any benefit to update new version of jquery library on each release
I am using jquery fancybox version 2.0.3. I want to prevent close on click
I was using an earlier version of geokit plugin on a rails 2.3 app

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.