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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T02:36:25+00:00 2026-05-26T02:36:25+00:00

i have looked everywhere(but maybe i’ve missed something) I’m currently creating a website where

  • 0

i have looked everywhere(but maybe i’ve missed something)

I’m currently creating a website where people have 3 options.

Let’s do it easy, 1,2 and 3.

Now the customer wants a technique that after you clicked the third checkbox(doesn’t matter in which way, you can go from 1 to 3 and then 2, or 3,1 and then 2) a alert popup comes up.

Now i have looked everywhere but i can’t find it.
Hopefully someone inhere could help me.

Thanx already.

  • 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-26T02:36:26+00:00Added an answer on May 26, 2026 at 2:36 am

    This should work, I think:

    $('input:checkbox').change(
        function(){
            if ($('input:checkbox:checked').length == $('input:checkbox').length){
                alert('All checkboxes are checked!');
            }
        });
    

    JS Fiddle demo.


    Edited in response to mblase75’s (accurate) comment (below):

    Of course this won’t work if there are ANY other checkboxes on the page, but that can easily be solved by adding a class to the three checkboxes being monitored and selecting that instead.

    The above can be easily adapted to apply to the children of a single element, regardless of how many of those elements are on the page:

    $('input:checkbox').change(
    
    function() {
        var $formElement = $(this).closest('form');
        if($formElement.find('input:checkbox:checked').length == $formElement.find('input:checkbox').length) {
            alert('All checkboxes are checked!');
        }
    });
    

    JS Fiddle demo.

    Amending the $formElement = $(this).closest('form'); variable assignment to select another element, div, fieldset or, well, any other element, would allow you to target only those checkboxes within that given element.

    References:

    • :checkbox selector
    • change()
    • :checked selector
    • length
    • closest()
    • find()
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have looked everywhere for the answer to this question, but cannot find anything
I have looked everywhere but have not found a problem similar to this. I
I have looked everywhere but couldn't find it anywhere. I installed it successfully but
I am new so this is probably simple but I have looked everywhere and
I have some problem about operator overloading. I looked everywhere but couldn't find a
I have looked everywhere for a simple answer to this but I have not
I have looked everywhere and found millions of python proxy servers but none do
I have looked everywhere, but have found nothing that is right for what I
I have looked pretty much everywhere but cannot seem to find an awnser to
I have looked everywhere, but have not found a solution for this issue. I

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.