HTML, JavaScript And CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingHTML, JavaScript And CSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old March 6th, 2005, 04:53 AM
Mad Ray Mad Ray is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 76 Mad Ray User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 15 m 4 sec
Reputation Power: 5
Send a message via MSN to Mad Ray
checkbox collection

Hi all,

if i have a collection of checkboxes with the same name:
<input type="checkbox" name="test">
<input type="checkbox" name="test">
<input type="checkbox" name="test">
<input type="checkbox" name="test">
<input type="checkbox" name="test">


and i have another checkbox that will have to select/deselect all the checkboxes
<input type="checkbox" name="checkAll" onClick="checkAllchk()">

is there a command to check/uncheck all checkboxes or i have to loop throughout the collection to do that?

thanks alot in advance.

Reply With Quote
  #2  
Old March 6th, 2005, 07:22 AM
Shadow Wizard's Avatar
Shadow Wizard Shadow Wizard is offline
Moderator From Beyond
ASP Free God 46th Plane (27500 - 27999 posts)
 
Join Date: Sep 2004
Location: Israel
Posts: 27,721 Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)  Folding Points: 377411 Folding Title: Super Ultimate Folder - Level 1Folding Points: 377411 Folding Title: Super Ultimate Folder - Level 1Folding Points: 377411 Folding Title: Super Ultimate Folder - Level 1Folding Points: 377411 Folding Title: Super Ultimate Folder - Level 1Folding Points: 377411 Folding Title: Super Ultimate Folder - Level 1Folding Points: 377411 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 3 Months 2 Weeks 5 h 20 m 20 sec
Reputation Power: 1914
no direct command - you'll have to iterate through the collection. you know how to do that?

Reply With Quote
  #3  
Old March 6th, 2005, 11:29 AM
Calldean's Avatar
Calldean Calldean is offline
Semi-Retired Geek
ASP Free Novice (500 - 999 posts)
 
Join Date: Mar 2005
Location: Liverpool
Posts: 681 Calldean User rank is Corporal (100 - 500 Reputation Level)Calldean User rank is Corporal (100 - 500 Reputation Level)Calldean User rank is Corporal (100 - 500 Reputation Level)Calldean User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 3 Days 20 h 46 m
Reputation Power: 6
http://www.somacon.com/blog/page17.php

JavaScript should do the job.

Reply With Quote
  #4  
Old March 7th, 2005, 05:40 AM
Mad Ray Mad Ray is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 76 Mad Ray User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 15 m 4 sec
Reputation Power: 5
Send a message via MSN to Mad Ray
thanks, i know how to iterate through them.
thanks alot for your help .

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingHTML, JavaScript And CSS Help > checkbox collection


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT