HighDots Forums  

Check if Checkbox is checked

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Check if Checkbox is checked in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Ryan_ webforumsuser@macromedia.com
 
Posts: n/a

Default Check if Checkbox is checked - 12-01-2003 , 07:17 AM






I have created checkboxes using CourseBuilder. Now I'm writing a function to check if one of e.g. four checkboxes is checked. How do I do this?



Reply With Quote
  #2  
Old   
mick_white
 
Posts: n/a

Default Re: Check if Checkbox is checked - 12-01-2003 , 10:42 AM






function isACheckboxChecked(form){
for(f=0;f<form.length;f++){
if(form[f].type=="checkbox" && form[f].checked){
return true;
}
}
return false;
}

Mick

"Ryan_" webforumsuser (AT) macromedia (DOT) com wrote:

Quote:
I have created checkboxes using CourseBuilder. Now I'm writing a function to check if one of e.g. four checkboxes is checked. How do I do this?







Reply With Quote
Reply




Thread Tools
Display Modes

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



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.