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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T08:16:41+00:00 2026-05-30T08:16:41+00:00

All, I’m using WordPress and I’m using some shortcodes to display a toggle functionality.

  • 0

All,
I’m using WordPress and I’m using some shortcodes to display a toggle functionality. The theme I’m using is Mingle and an example of the toggle functionality can be found here:

http://themeforest.net/item/mingle-multipurpose-wordpress-theme/full_screen_preview/235056

You can click on Shortcodes -> Tabs and Toggles

This works perfectly and I have a form with some fields. If the toggle is open then the jQuery Validator works fine. However, if the toggles are closed jQuery doesn’t reconginze that there are fields in them and doesn’t check to see if they have a value. Is there a work around for this?

EDIT: Here is my current jQuery:

$("#register").validate({
    ignore: "",
    rules: {
        vendor_email: {
            required: true,
            email: true
        },
        vendor_name: "required",
        zip: "required",
    },
    messages: {
        vendor_email: {
            required: "<br>Please enter an email address!<br><br>",
            email: "<br>Please enter a valid email address!<br><br>"
        },
        vendor_name: "<br>Please enter your vendor name!<br><br>",
        zip: "<br>Please enter a zip code!<br><br>",
    },
    highlight: function(element, errorClass) {
        alert(element);
        $(element).closest('togDesc').show();
        $(element).closest('toggleItem').find('.minus').removeClass('minus').addClass('plus');
    });
});

The highlight portion is causing an error and nothing to be validated. Any idea why?

Thanks in advance!

  • 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-30T08:16:43+00:00Added an answer on May 30, 2026 at 8:16 am

    By default, jQuery validation ignores hidden fields. Change the ignore to empty:

    $("#form").validate({
        ignore: "",
        ...
    });
    

    If those elements are hidden, you might want to programatically toggle their parent open:

    $("#form").validate({
        ignore: "",
        highlight: function(element, errorClass) {
            $(element).addClass(errorClass);
            if(!$(element).is(":visible")) {
                $(element).closest('togDesc').show();
                $(element).closest('toggleItem').find('.minus').removeClass('minus').addClass('plus');
            }
        });
    }
    

    There might be a built in function to toggle this open in mingle, but this should do it as well.

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

Sidebar

Related Questions

All, I'm using wordpress with this and for some reason the eventDrop stopped working.
All, I have some script tags that are not working in Wordpress. If I
All the examples I can find using DLLImport to call C++ code from C#
All the articles I've found via google are either obsolete or contradict one another.
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
All, I am building a small site using PHP. In the site, I receive
All the examples of use and tutorials I have found on beginBackgroundTaskWithExpirationHandler: show how
All, I'm using Facebook Connect (JS SDK) to authenticate a user to my site.
All! I found strange code in LinkedBlockingQueue: private E dequeue() { // assert takeLock.isHeldByCurrentThread();

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.