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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T08:20:16+00:00 2026-06-10T08:20:16+00:00

Most of the examples I have found work with forms. Please see the example

  • 0

Most of the examples I have found work with forms. Please see the example fiddle

http://jsfiddle.net/pepefloyd/DL53N/2/

I want to show that button only when all the fields in either group of fields has been filled out.

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-10T08:20:17+00:00Added an answer on June 10, 2026 at 8:20 am

    If I understood you correctly, you want to check if all your fields (inputs, selects) contain a value and if so, proceede…
    You do not depend on forms for that (though it would be semantically more correct).

    you can do something like that:

    submitapproval = function()
    {
        var allFilled = true;
    
        // iterate through all your fields and check if they do have a value set.
        $("input, select").each(function(i,el) {
          var $el = $(el);
          // if any field has no value, allFilled turns to false.
          allFilled = allFilled && ($el.val() !== "");
        });            
    
        if (allFilled)
        {
            // your code...
        }
    }
    

    You should consider not setting a default value for a field (like your #depends1) if you want to check if the user set it.

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

Sidebar

Related Questions

i'm using this example implementation found at http://tangentsoft.net/wskfaq/examples/basics/select-server.html This is doing most of what
Example: I have an NSArray with 40 objects. What is the most efficient way
World's most convuluted title I know, an example should explain it better. I have
I have tried a couple of different examples I found on forums and even
I am working on a software project and have found numerous examples where find_first_of(),
I recently came across the link below which I have found quite interesting. http://en.wikipedia.org/wiki/XOR_linked_list
Example: I have some text, like this php code if(empty($condition)) { // work here...
Most examples show how to redirect all subdomain traffic to a primary domain, maintaining
Most examples of creating remote branches involve pushing from a local branch Is there
In most examples that you find on the web when explicitly not using using,

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.