LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Put check in multiple checkboxes on web form (https://www.linuxquestions.org/questions/programming-9/put-check-in-multiple-checkboxes-on-web-form-4175626190/)

elfoozo 03-23-2018 02:32 PM

Put check in multiple checkboxes on web form
 
I don't know if this would be considered a programming question explicitly but I need to start my quest for a solution somewhere.

I use a browser based form I that has a section on it with multiple individual checkboxes. The boxes are consistent but their values change. So I need to be able to select all, some or sections of these check boxes before I submit the form.

I'd like to be able to mouse select multiple lines and click a button (macro?) and check all the boxes on lines I've selected in a single step, eliminating the tedious clicking of each box.

Is there any programming solution to or overlay utility I could leverage to accomplish clicking check boxes?

BW-userx 03-23-2018 03:12 PM

try looking into grouping your check boxes and assigning that one check box to selecting all of the checkboxes in that group to cause them to all be checked when it is checked.

astrogeek 03-23-2018 03:32 PM

Usually the way you would do that is to group related checkboxes, possibly into multiple groups, then for each realted group have a "Select all in group" checkbox or button that calls a javascript function to check them all. A quick DDG search found this useful description of a simple method - there are many more.

The JQuery javascript libs would simplify it a bit as well.

I am not aware of a pre-canned method of doing it exactly as you describe it, checking click-drag selected checkboxes, but some similar javascript should be able to handle that too, simply trigger the check function on the selection.


All times are GMT -5. The time now is 11:12 AM.