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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T16:33:59+00:00 2026-05-27T16:33:59+00:00

Possible Duplicate: How to implement “select all” check box in HTML? Select all and

  • 0

Possible Duplicate:
How to implement “select all” check box in HTML?

Select all and Select All Category
Select a category to select all and I want to run the form with jquery.
But the selection process does not work in two different

I have written I do not know English using Google Translate.
I wanted to do the following

Select all of the process

for example,
how computing is done as follows:

Why this code does not work?

$('input[name="select_all"],input[name="select_category"]').bind('click', function(){
    var check_status = $(this).is(':checked');
    $('input[type="checkbox"]', $(this).parent('li')).attr('checked', check_status);
});


<ul>
 <li><input type="checkbox" name="select_all"> <label>Select all</label>
  <ul>
   <li><input type="checkbox" name="select_category"> <label><strong>Select All Category</strong></label>
    <ul>
     <li><input type="checkbox" name="category[]" value="1"> <label>Category 01 A</label></li>
     <li><input type="checkbox" name="category[]" value="2"> <label>Category 01 B</label></li>
     <li><input type="checkbox" name="category[]" value="3"> <label>Category 01 C</label></li>
    </ul>
   </li>
   <li><input type="checkbox" name="select_category"> <label><strong>Select All Category</strong></label>
    <ul>
     <li><input type="checkbox" name="category[]" value="4"> <label>Category 02 A</label></li>
     <li><input type="checkbox" name="category[]" value="5"> <label>Category 02 B</label></li>
     <li><input type="checkbox" name="category[]" value="6"> <label>Category 02 C</label></li>
    </ul>
   </li>
  </ul>
 </li>
</ul>
  • 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-27T16:34:00+00:00Added an answer on May 27, 2026 at 4:34 pm

    Do you mean something like this:

    //add some class to your Select All Checkbox
    $('.yourCheckBoxClassHere').bind('click', function(){
        if($(this).is(':checked')) {
           $('input[name="category[]"]').attr('checked', 'checked');
        }
        else {
           $('input[name="category[]"]').attr('checked', '');
        }
    });
    
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: .NET - What’s the best way to implement a catch all exceptions
Possible Duplicate: How to programmatically send SMS on the iPhone? I want to implement
Possible Duplicates: How would I implement stackoverflow’s hovering dialogs? i want a small box
Possible Duplicate: Is there a “Set” data structure in .Net? Duplicate: this is a
Possible Duplicate: UIScrollView. Any thoughts on implementing “infinite” scroll/zoom? I've got an UIScrollView and
Possible Duplicate: Uploading and downloading via ftp with iPhone SDK I want to implement
Possible Duplicate: Why do some websites add “Slugs” to the end of URLs? This
Possible Duplicate: Using global exception handling with “setUncaughtExceptionHandler” and “Toast” I have implemented UncaughtExceptionHandler
Possible Duplicate: Reliable and fast FFT in Java i want to implement a fast
Possible Duplicate: Why does (does it really?) List implement all these interfaces, not just

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.