LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-23-2018, 02:32 PM   #1
elfoozo
Member
 
Registered: Feb 2004
Location: Washington, USA
Distribution: Debian
Posts: 265

Rep: Reputation: 32
Question 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?
 
Old 03-23-2018, 03:12 PM   #2
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
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.
 
Old 03-23-2018, 03:32 PM   #3
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,258
Blog Entries: 24

Rep: Reputation: 4193Reputation: 4193Reputation: 4193Reputation: 4193Reputation: 4193Reputation: 4193Reputation: 4193Reputation: 4193Reputation: 4193Reputation: 4193Reputation: 4193
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
block particular web site form multiple site hosted web server and allow others lasantha Linux - Security 2 08-17-2010 01:49 PM
block particular web site form multiple site hosted web server and allow others lasantha Linux - Security 1 08-17-2010 12:09 PM
How to check form files in another hd? timberwolf Linux - General 4 12-08-2003 08:08 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration