Enter your email address to subscribe to new posts and receive notifications of new posts by email. The checkbox is a GUI element that allows the user to make certain choices for the given options. If we have more options in the check box list, we need to add the select all and clear option to improve the user experience. 1. Checkboxes are used for instances where a user may wish to select multiple options, such as in the instance of a "check all that apply" question. Inside the GetSelected JavaScript function, first the Html Table is referenced and then all the CheckBoxes inside the Html Table are referenced. A column can be shown with a checkbox that reflects the row's selected status simply through the use of the select-checkbox CSS class for that column (columns.className). If user selects manually all checkboxes for rows on the table then the checkbox in table header will be checked automatically to show that all checkboxes on the table body are checked. We will also put a checkbox on the table header and selecting this checkbox all rows on the table will be selected. Most of the time, the user will either be selecting a few items from the list but leaving most unchecked, or selecting all or most of the items from the list and leaving very few items unchecked. This is a needy feature for playing with large data rows and want to make changes in several rows. Tip: Always add the