Button that will check all checkboxes in section

  • Thread starter Alicia Rittenhouse
  • Start date
A

Alicia Rittenhouse

I am working on a website for my company. We have a section that has all of
the states listed and I want to create a button or link that selects all the
states or none. And then also in the same section - the states are broke
down into regions and have another button that will select all of the states
in that region or none of them. I hope that makes sense. I am not a big
time coder, enough to be dangerous.

Thanks in advance for your assistance!! Alicia
 
J

Jens Peter Karlsen [FP-MVP]

You need JavaScript for this. Create a function that checks all the
wanted checkbox'es. You need another function for the regions.
You ofcourse also need functions to uncheck all, which should be
simple once you have written the first function to check all.
You can then use an onclick event on a button to call the function.

Regards Jens Peter Karlsen. Microsoft MVP - Frontpage.
 
A

Alicia Rittenhouse

Could you assist me with the coding for this. I do not know javascript at
all and would have no idea on how to even get started on it! Is this a
something that would be too difficult to do?
 
J

Jens Peter Karlsen [FP-MVP]

Sorry. it will be way too much work to write this.
Either learn Javascript (Search for "Javascript Tutorial" on Google)
or hire someone to write it.

Regards Jens Peter Karlsen. Microsoft MVP - Frontpage.
 
S

Stefan B Rusynko

See http://www.shiningstar.net/articles/articles/javascript/checkboxes.asp?ID=AW

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


| Could you assist me with the coding for this. I do not know javascript at
| all and would have no idea on how to even get started on it! Is this a
| something that would be too difficult to do?
|
| "Jens Peter Karlsen [FP-MVP]" wrote:
|
| > You need JavaScript for this. Create a function that checks all the
| > wanted checkbox'es. You need another function for the regions.
| > You ofcourse also need functions to uncheck all, which should be
| > simple once you have written the first function to check all.
| > You can then use an onclick event on a button to call the function.
| >
| > Regards Jens Peter Karlsen. Microsoft MVP - Frontpage.
| >
| > On Tue, 3 Jan 2006 11:23:02 -0800, Alicia Rittenhouse
| >
| > >I am working on a website for my company. We have a section that has all of
| > >the states listed and I want to create a button or link that selects all the
| > >states or none. And then also in the same section - the states are broke
| > >down into regions and have another button that will select all of the states
| > >in that region or none of them. I hope that makes sense. I am not a big
| > >time coder, enough to be dangerous.
| > >
| > >Thanks in advance for your assistance!! Alicia
| >
 
Top