Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Select and Deselect checkbox script - Question

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,62551
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Select and Deselect checkbox script - Question
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Select and Deselect checkbox script - Question - 7/21/2008 5:31:48 AM   
  WarrenW

 

Posts: 1
Score: 0
Joined: 7/21/2008
Status: offline
Hi,

I have seen many scripts for selecting and desselecting all checkboxes in a form. Does anyone know of a script ot how to make it do select only groups of checkboxes in a form?

What I mean by this is I'll have different sets of checkboxes in one form. And I want to select all or deselect them by their category. Maybe I can do it by looking at part of the name of each checkbox or something.

I don't know how to write the scripts so I'm just checking to see if someone has one.

Thanks anyways!

Warren
 
 
Post #: 1
 
 RE: Select and Deselect checkbox script - Question - 7/21/2008 5:38:37 AM   
  Rischip


Posts: 502
Score: 2
Joined: 3/26/2007
Status: offline
Take the examples you have seen that do selects for all. Then modify it to include multiple "Select All" Sections, then create a naming structure for each section and getelementsbytype("checkbox") or whatever you are using, then do a for each and a instr() to select each group.

_____________________________

Rischip
Author of - The Grim Linker

(in reply to WarrenW)
 
 
Post #: 2
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Select and Deselect checkbox script - Question Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts