Quickly Add Check/Uncheck All Functionality To Your Forms Or Tables

jQuery Check All plugin that allows you to quickly add check/uncheck all functions to your forms or tables.

simple form checkbox checked, jquery check all checkboxes, jquery check all checkboxes by name, checkbox select all jquery, jquery check all checkboxes in table

the available choices:

  • container: a delimited string or jQuery object for the element that contains children’s checkboxes. Document assumptions.
  • childCheckboxes: A selector string or jQuery object for children’s checkboxes. Input defaults [type = checkbox]. Note: If you provide this option, make sure that what you pass are checkboxes.
  • showIndeterminate: A Boolean value that specifies whether the All check box is shown in an unselected state if a subset of the sub-check boxes are selected.

How to make use of it:

1. Include jQuery and the script somewhere on your page.

<script src="jquery.js"></script>
<script src="jquery-check-all.js"></script>

2. You will have markup containing your checkboxes:

<table>
  <thead>
    <tr>
      <td><input id="check-all" type="checkbox"></td>
      <td></td>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><input type="checkbox" value="1"></td>
      <td>option 1</td>
    </tr>
    <tr>
      <td><input type="checkbox" value="2"></td>
      <td>option 2</td>
    </tr>
    <tr>
      <td><input type="checkbox" value="3"></td>
      <td>option 3</td>
    </tr>
  </tbody>
</table>

3. Call the checkAll() function on the “check all” checkbox to configure the plugin.

<script>
  $(document).ready(function() {
    $('#check-all').checkAll();
  });
</script>

simple form check all checkbox, jquery check all checkboxes Plugin/Github, check all checkbox javascript, check/uncheck all checkbox jquery


See Demo And Download

Official Website(markgx): Click Here

This superior jQuery/javascript plugin is developed by markgx. For extra advanced usage, please go to the official website.

Related Posts

Input-Values-Using-Mouse-Drag

Create Side Sliders Input Values Using Mouse Drag | Pointer Lock

HTML Range Slider is a lightweight library to create side sliders to adjust values easily and precisely by making use of the Pointer Lock API. Side Slider…

simple-parallax-scrolling-js

Smooth and Lightweight Parallax Scroll Library in Pure Javascript

Lightweight and seamless parallax scrolling library implemented in pure javascript using hardware acceleration for additional performance. Main Features Extremely lightweight with no dependencies A few kilobytes of pure…

Convert-Form-Data-to-JSON

How to Convert Form Data to JSON with HTML Forms | FormsJS

FormsJS is a simple-to-use JavaScript library that covers type subject values to JSON in real time. The items containing the data category will be analyzed automatically. It…

editable-html-table-using-javascript

A Small jQuery Extension to Convert An Editable HTML Table

Editable Table is a small jQuery extension to convert an editable HTML table for fast data entry and validation. A small jQuery extension to convert a static…

jquery.youtube-background

Simple jQuery Plugin for Embedding YouTube Videos As Cover Background

jquery.youtube-background is a jQuery plugin built to facilitate YouTube embeds as cover wallpaper using the YouTube Embed API. There is another jQuery Youtube Video Background plugin that…

Data-Table-Generator-Tabulator

Interactive Data Table Generator with JS/jQuery and JSON | Tabulator

Tabulator allows you to create interactive tables in seconds from any HTML Table, JavaScript array, AJAX data source, or JSON format data. Just include the library in your…